From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753123AbcGSHLJ (ORCPT ); Tue, 19 Jul 2016 03:11:09 -0400 Received: from terminus.zytor.com ([198.137.202.10]:45414 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031AbcGSHLF (ORCPT ); Tue, 19 Jul 2016 03:11:05 -0400 Date: Tue, 19 Jul 2016 00:10:27 -0700 From: tip-bot for Anna-Maria Gleixner Message-ID: Cc: ray.huang@amd.com, torvalds@linux-foundation.org, bp@suse.de, anna-maria@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de Reply-To: hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de, anna-maria@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, bp@suse.de, ray.huang@amd.com, torvalds@linux-foundation.org In-Reply-To: <20160713153334.944849172@linutronix.de> References: <20160713153334.944849172@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/hotplug] perf/x86/amd/power: Change hotplug notifier to a symmetric structure Git-Commit-ID: 8381f6a0c02fdf457d1712cb82f2f0240f2f03cc X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8381f6a0c02fdf457d1712cb82f2f0240f2f03cc Gitweb: http://git.kernel.org/tip/8381f6a0c02fdf457d1712cb82f2f0240f2f03cc Author: Anna-Maria Gleixner AuthorDate: Wed, 13 Jul 2016 17:16:27 +0000 Committer: Ingo Molnar CommitDate: Thu, 14 Jul 2016 09:34:41 +0200 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 Cc: Borislav Petkov Cc: Huang Rui Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: rt@linutronix.de Link: http://lkml.kernel.org/r/20160713153334.944849172@linutronix.de Signed-off-by: Ingo Molnar --- arch/x86/events/amd/power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index 55a3529..204df18 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) * 1) If any CPU is set at cpu_mask in the same compute unit, do * nothing. * 2) If no CPU is set at cpu_mask in the same compute unit, - * set current STARTING CPU. + * set current ONLINE CPU. * * Note: if there is a CPU aside of the new one already in the * 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 switch (action & ~CPU_TASKS_FROZEN) { case CPU_DOWN_FAILED: - case CPU_STARTING: + case CPU_ONLINE: power_cpu_init(cpu); break; case CPU_DOWN_PREPARE: