aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/events
diff options
context:
space:
mode:
authorAnna-Maria Gleixner <anna-maria@linutronix.de>2016-07-13 13:16:27 -0400
committerIngo Molnar <mingo@kernel.org>2016-07-14 03:34:41 -0400
commit8381f6a0c02fdf457d1712cb82f2f0240f2f03cc (patch)
treea0caac4f5d7d3bad8ff8afeef6a5b473822f3c1e /arch/x86/events
parent25a77b55e74c46c79f838a97e782a45c33588ca6 (diff)
perf/x86/amd/power: Change hotplug notifier to a symmetric structure
To simplify the hotplug mechanism move the starting callback to online. There is no functional requirement that the cpumask bit has to be set in the starting callback. Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de> Cc: Borislav Petkov <bp@suse.de> Cc: Huang Rui <ray.huang@amd.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: rt@linutronix.de Link: http://lkml.kernel.org/r/20160713153334.944849172@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/events')
-rw-r--r--arch/x86/events/amd/power.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c
index 55a3529dbf12..204df18e7cd2 100644
--- a/arch/x86/events/amd/power.c
+++ b/arch/x86/events/amd/power.c
@@ -255,7 +255,7 @@ static void power_cpu_init(int cpu)
255 * 1) If any CPU is set at cpu_mask in the same compute unit, do 255 * 1) If any CPU is set at cpu_mask in the same compute unit, do
256 * nothing. 256 * nothing.
257 * 2) If no CPU is set at cpu_mask in the same compute unit, 257 * 2) If no CPU is set at cpu_mask in the same compute unit,
258 * set current STARTING CPU. 258 * set current ONLINE CPU.
259 * 259 *
260 * Note: if there is a CPU aside of the new one already in the 260 * Note: if there is a CPU aside of the new one already in the
261 * sibling mask, then it is also in cpu_mask. 261 * sibling mask, then it is also in cpu_mask.
@@ -272,7 +272,7 @@ power_cpu_notifier(struct notifier_block *self, unsigned long action, void *hcpu
272 272
273 switch (action & ~CPU_TASKS_FROZEN) { 273 switch (action & ~CPU_TASKS_FROZEN) {
274 case CPU_DOWN_FAILED: 274 case CPU_DOWN_FAILED:
275 case CPU_STARTING: 275 case CPU_ONLINE:
276 power_cpu_init(cpu); 276 power_cpu_init(cpu);
277 break; 277 break;
278 case CPU_DOWN_PREPARE: 278 case CPU_DOWN_PREPARE: