]> git.baikalelectronics.ru Git - kernel.git/commit
powercap/intel_rapl: Fix domain detection
authorZhang Rui <rui.zhang@intel.com>
Tue, 13 Oct 2020 07:42:40 +0000 (15:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Oct 2020 15:35:36 +0000 (17:35 +0200)
commit5fdeb52aeeb5e56e8f241a91794bce9fc127430c
treed91b5f49394fc6a1eb386b22ff917c16c70bc113
parentcd1ce24be9cb983db5311db4b1c343fb00239b7a
powercap/intel_rapl: Fix domain detection

As only the low 32 bits of the RAPL_DOMAIN_REG_STATUS register
represents the energy counter, and the high 32 bits are reserved,
detect the existence of a RAPL domain by checking the low 32 bits only.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl_common.c