From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934040AbcLBAQE (ORCPT ); Thu, 1 Dec 2016 19:16:04 -0500 Received: from terminus.zytor.com ([198.137.202.10]:55888 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933022AbcLBAPT (ORCPT ); Thu, 1 Dec 2016 19:15:19 -0500 Date: Thu, 1 Dec 2016 16:14:53 -0800 From: tip-bot for Anna-Maria Gleixner Message-ID: Cc: linux-kernel@vger.kernel.org, anna-maria@linutronix.de, catalin.marinas@arm.com, tglx@linutronix.de, bigeasy@linutronix.de, will.deacon@arm.com, hpa@zytor.com, suzuki.poulose@arm.com, mingo@kernel.org Reply-To: anna-maria@linutronix.de, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, bigeasy@linutronix.de, tglx@linutronix.de, suzuki.poulose@arm.com, will.deacon@arm.com, hpa@zytor.com, mingo@kernel.org In-Reply-To: <20161126231350.10321-16-bigeasy@linutronix.de> References: <20161126231350.10321-16-bigeasy@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:smp/hotplug] arm64/cpuinfo: Make hotplug notifier symmetric Git-Commit-ID: 914fb85f01571233af199a78ed1f88d9268421fd 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: 914fb85f01571233af199a78ed1f88d9268421fd Gitweb: http://git.kernel.org/tip/914fb85f01571233af199a78ed1f88d9268421fd Author: Anna-Maria Gleixner AuthorDate: Sun, 27 Nov 2016 00:13:43 +0100 Committer: Thomas Gleixner CommitDate: Fri, 2 Dec 2016 00:52:37 +0100 arm64/cpuinfo: Make hotplug notifier symmetric There is no requirement to keep the sysfs files around until the CPU is completely dead. Remove them during the DOWN_PREPARE notification. This is a preparatory patch for converting to the hotplug state machine. Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Suzuki K Poulose Cc: Catalin Marinas Cc: Will Deacon Cc: rt@linutronix.de Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/20161126231350.10321-16-bigeasy@linutronix.de Signed-off-by: Thomas Gleixner --- arch/arm64/kernel/cpuinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index b3d5b3e..19aad70 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -272,9 +272,10 @@ static int cpuid_callback(struct notifier_block *nb, switch (action & ~CPU_TASKS_FROZEN) { case CPU_ONLINE: + case CPU_DOWN_FAILED: rc = cpuid_add_regs(cpu); break; - case CPU_DEAD: + case CPU_DOWN_PREPARE: rc = cpuid_remove_regs(cpu); break; }