Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp545768ybb; Wed, 25 Mar 2020 05:07:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuBhUXYW7pl0MazfI+Ws1psSng8nOPKMsGIZnWEXyk8TM+kdcaPYh2naevgLnQvHBP4QVno X-Received: by 2002:a4a:9216:: with SMTP id f22mr932285ooh.58.1585138048596; Wed, 25 Mar 2020 05:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585138048; cv=none; d=google.com; s=arc-20160816; b=F3ArXYLdqfmrMEoaymS+80uBcc3F3TRZ5x/ZhlC23s9flO970VgRGVlywg+0fTUHqj EqdgrMz8QL9D0miomT+2FIf9r5VIyshbK1+Lv5AH4S5SB026EdTBwPS0/LdbgowEY4BN /K6qGea8R57cH226wNMTqCpTDCsk1TEN+UkDM3WCcI5R0jJAGmSTrhBMPozrPra7aubH p3GfF8XPCVPzNC7MDBRmPrau9K6oqDnh4KEpirBk8Y8zHe2ICSbXZXbwZ7+F4iqU2N06 bPliTqPW5ZGHnt4nnxn1AG1JXN7N1m4vpiLYOyY4e47NwKqw1Jig+yxkOS+jtPlY0AY0 hIgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=b3LeChnxa5Hcr2M4gTylNKQG4Ue6aiNOAv40Rd2w+9A=; b=OcR9DvUZjSLaLLzQ9Vp1t2P/UcYaNfQEC3rJr9ZQ5rYEtx7Bo4G492uz1tROE+fmi+ z8NygWesNzmmNSZIdMX9U8u6zLJI22QbMJz+8M01rLf4JNND3HlmZIxfFVU/DFgfzhJ0 6psg7B8oe3IEpDiWtmYCNNQ4Q7e0XZ8Jy+4MKkctz4e5nnnvOlHityP/+PO17VjnUD2W cWVz2WKDmNAw+AphE7axITmqSMPz3lTMJp2tsUg/n82CWI9LmBar/uBIbpxOdjrvYjJl mOY9Cw9gR1IVIeBPUf0PRGUf1uR0m5uZ1vI7MhaPEEMW0wV0ZdSA9LpTN41S7LXLtFhU niZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o63si10754574oih.74.2020.03.25.05.07.13; Wed, 25 Mar 2020 05:07:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727683AbgCYMGZ (ORCPT + 99 others); Wed, 25 Mar 2020 08:06:25 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47785 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727647AbgCYMGV (ORCPT ); Wed, 25 Mar 2020 08:06:21 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jH4nU-0000lp-JV; Wed, 25 Mar 2020 13:06:12 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id BC3051C0489; Wed, 25 Mar 2020 13:06:06 +0100 (CET) Date: Wed, 25 Mar 2020 12:06:06 -0000 From: "tip-bot2 for Qais Yousef" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] ia64: Replace cpu_down() with smp_shutdown_nonboot_cpus() Cc: Qais Yousef , Thomas Gleixner , Tony Luck , Fenghua Yu , x86 , LKML In-Reply-To: <20200323135110.30522-4-qais.yousef@arm.com> References: <20200323135110.30522-4-qais.yousef@arm.com> MIME-Version: 1.0 Message-ID: <158513796636.28353.2605944745472235096.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the smp/core branch of tip: Commit-ID: 1e42176b4dac328b0be7075c2cebdf2006d31eb3 Gitweb: https://git.kernel.org/tip/1e42176b4dac328b0be7075c2cebdf2006d31eb3 Author: Qais Yousef AuthorDate: Mon, 23 Mar 2020 13:50:56 Committer: Thomas Gleixner CommitterDate: Wed, 25 Mar 2020 12:59:32 +01:00 ia64: Replace cpu_down() with smp_shutdown_nonboot_cpus() Use the new smp_shutdown_nonboot_cpus() instead of using cpu_down() directly. Use reboot_cpu instead of hardcoding the boot CPU to 0. This also prepares to make cpu_up/down() a private interface of the CPU subsystem. Signed-off-by: Qais Yousef Signed-off-by: Thomas Gleixner Cc: Tony Luck Cc: Fenghua Yu Link: https://lkml.kernel.org/r/20200323135110.30522-4-qais.yousef@arm.com --- arch/ia64/kernel/process.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index 968b5f3..bf4c0cd 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c @@ -646,14 +646,8 @@ cpu_halt (void) void machine_shutdown(void) { -#ifdef CONFIG_HOTPLUG_CPU - int cpu; + smp_shutdown_nonboot_cpus(reboot_cpu); - for_each_online_cpu(cpu) { - if (cpu != smp_processor_id()) - cpu_down(cpu); - } -#endif #ifdef CONFIG_KEXEC kexec_disable_iosapic(); #endif