From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753910AbcKZXQv (ORCPT ); Sat, 26 Nov 2016 18:16:51 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:43535 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753300AbcKZXOe (ORCPT ); Sat, 26 Nov 2016 18:14:34 -0500 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: rt@linutronix.de, tglx@linutronix.de, Anna-Maria Gleixner , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Sebastian Andrzej Siewior Subject: [PATCH 15/22] arm64/cpuinfo: Make hotplug notifier symmetric Date: Sun, 27 Nov 2016 00:13:43 +0100 Message-Id: <20161126231350.10321-16-bigeasy@linutronix.de> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161126231350.10321-1-bigeasy@linutronix.de> References: <20161126231350.10321-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anna-Maria Gleixner 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. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior --- 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 b3d5b3e8fbcb..19aad7041e14 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, =20 switch (action & ~CPU_TASKS_FROZEN) { case CPU_ONLINE: + case CPU_DOWN_FAILED: rc =3D cpuid_add_regs(cpu); break; - case CPU_DEAD: + case CPU_DOWN_PREPARE: rc =3D cpuid_remove_regs(cpu); break; } --=20 2.10.2