]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powercap/intel_rapl: Track active CPUs internally
authorThomas Gleixner <tglx@linutronix.de>
Tue, 22 Nov 2016 21:16:05 +0000 (21:16 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Nov 2016 20:58:32 +0000 (21:58 +0100)
commitb4005e9278a4e62819fb16ba4bc3430ca650d0ab
treec7f6ccc47632a4bb25168f576b9b2e791c72c7df
parent58705069204cc8afa0d7b759e81b61147e973de9
powercap/intel_rapl: Track active CPUs internally

The ability of the CPU hotplug code to stop online/offline at each step
makes it necessary to track the activated CPUs in a package directly,
because outerwise a CPU offline callback can find CPUs which have already
executed the offline callback, but are not yet marked offline in the
topology mask. That could make such a CPU the package leader and in case
that CPU goes fully offline leave the package lead orphaned.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl.c