VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Zhang Rui <rui.zhang@intel.com> 2020-10-13 15:42:40 +0800 committer: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2020-10-16 17:35:36 +0200 commit: 7a57e9f112adebc9e5dc787c2a59dbc06ae5060d parent: 0b8417c14181595997091145342954332fa016cd
Commit Summary:
powercap/intel_rapl: Fix domain detection
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c
index 983d75bd5bd1..2651ea6cd6d3 100644
--- a/drivers/powercap/intel_rapl_common.c
+++ b/drivers/powercap/intel_rapl_common.c
@@ -1228,7 +1228,7 @@ static int rapl_check_domain(int cpu, int domain, struct rapl_package *rp)
 	 * values, otherwise skip it.
 	 */
 
-	ra.mask = ~0;
+	ra.mask = ENERGY_STATUS_MASK;
 	if (rp->priv->read_raw(cpu, &ra) || !ra.value)
 		return -ENODEV;