From patchwork Fri Dec 2 11:50:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 28886 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp791627wrr; Fri, 2 Dec 2022 03:56:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LMCRQ6cxTt/Pui/P7Dt9MoHq2XIQISWvEtIBwdNTvUuwOHYrVLlB1sNaDBgEfX3Omy1ZB X-Received: by 2002:a17:906:706:b0:7ac:2e16:eb05 with SMTP id y6-20020a170906070600b007ac2e16eb05mr62150760ejb.26.1669982188447; Fri, 02 Dec 2022 03:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982188; cv=none; d=google.com; s=arc-20160816; b=uCtGv6SCRsPoXG6X80rTVxZcmiWX+ii326P7O82ma7FhOCUfrDjz/P3nqIePvabVnl E9DbYIQ8PKmIu6jxJjxxAmtAem3rpLNV9oSAYXLSmdwsyYb2GKEPPQN8oDBXxAKbgoLx nukcvtN+QR/YuPoYT4LePUByvy0stGv/u3jO7MU4RjEAOOMZI5Om0mSqSk4hWYbswM6v 3mg/vQSYjWFCwFig+nJSIhCerYQV4wPrULAdUH1Duy0Rvp2rj32zSFHJhotYxDXlisuA M7lSKr/9oYj/L9VhSRslS/63m88k/5Sl/ZmVD8fJ5WxZryvnRSNH4I2NM7uCPifUglxg fErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=19W2gYZDzqrY8ioEBgK+LQmk60iz1wRdMIHTc/yIsOw=; b=TVn9adWBDW0TV3+BLS6nrj+E6fnmw+QuKm4IEvMV/AT0l983y1uzStBWG0L1/Kc4UJ PdnH0VLMkVY6OdPDkWsZPENIVekT1wHxwyT8VgDY1603D+XWkF+pywAESMtrIEO2JIbn FUkj+OOnONK9J0oSyRozI7SrhLatbnwJmWerwTddOcSXNLsqJjd1fqlJ2McA/IEmLOLR TrYpK38fqKh/BX7fp5Nk+TvdAUvJgPHm+2h7wk6sCptiZYk1Wb0x8K+RsMaxFaEFdHAc B63tD26iKpunSG5XMhqpakGwVAWcliZTlK+4APvT9KEviccA1pJ8JSveD9IzNUGu6a87 u+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mTV9Xaw1; dkim=neutral (no key) header.i=@linutronix.de header.b="GsmC8/NH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh43-20020a1709076eab00b007c003e06f9bsi6047695ejc.102.2022.12.02.03.56.04; Fri, 02 Dec 2022 03:56:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mTV9Xaw1; dkim=neutral (no key) header.i=@linutronix.de header.b="GsmC8/NH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbiLBLvH (ORCPT + 99 others); Fri, 2 Dec 2022 06:51:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbiLBLvD (ORCPT ); Fri, 2 Dec 2022 06:51:03 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E75E0BA62A; Fri, 2 Dec 2022 03:51:02 -0800 (PST) Date: Fri, 02 Dec 2022 11:50:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669981861; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=19W2gYZDzqrY8ioEBgK+LQmk60iz1wRdMIHTc/yIsOw=; b=mTV9Xaw1jXsvRSwIfdPmowJnGb3y7VZ/Dn4yhQoqs1jg81SaiB2gCuP2g1BEjI345oESS1 FHF7L8Lw7Ub+kHGZ3pbbUfaIlDQR9/tYfgzwGugc3ArWcHWfdcYY7F5eU4AOBEpkT/We8U crQnfjclMduc7Ca87bhRY7HusBqLFWRJQeBdNRw/uE70YMVNOU5mrfzsGd5esrEcJISo+9 f2d6UP7fOMCQ59dTcCHRfbfvC2xBUqnctvXQZmUQIonRknoV35YVe2SAkI/3MM4FBKnHKe 2pRrN8AE9HcymtAQCYDQ3Bvgn4ofvef/CejNhYio3BNnevaNm3FiAZbVkGlaKA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669981861; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=19W2gYZDzqrY8ioEBgK+LQmk60iz1wRdMIHTc/yIsOw=; b=GsmC8/NHtLTF1ZRJrpMpvMtU/nNiZPQzrMc/A/FDw8miV2SVIOUdrx4tx9Z8c/LgdDSb0Z eU+JfXr/yowRjFDg== From: "tip-bot2 for Phil Auld" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] cpu/hotplug: Set cpuhp target for boot cpu Cc: Phil Auld , Thomas Gleixner , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221117162329.3164999-3-pauld@redhat.com> References: <20221117162329.3164999-3-pauld@redhat.com> MIME-Version: 1.0 Message-ID: <166998185980.4906.17290345122563836511.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751103243258778155?= X-GMAIL-MSGID: =?utf-8?q?1751103243258778155?= The following commit has been merged into the smp/core branch of tip: Commit-ID: d385febc9a19635d4ef197bfad3e84729002f57c Gitweb: https://git.kernel.org/tip/d385febc9a19635d4ef197bfad3e84729002f57c Author: Phil Auld AuthorDate: Thu, 17 Nov 2022 11:23:29 -05:00 Committer: Thomas Gleixner CommitterDate: Fri, 02 Dec 2022 12:43:02 +01:00 cpu/hotplug: Set cpuhp target for boot cpu Since the boot cpu does not go through the hotplug process it ends up with state == CPUHP_ONLINE but target == CPUHP_OFFLINE. So set the target to match in boot_cpu_hotplug_init(). Signed-off-by: Phil Auld Signed-off-by: Thomas Gleixner Reviewed-by: Valentin Schneider Link: https://lore.kernel.org/r/20221117162329.3164999-3-pauld@redhat.com --- kernel/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index 979de99..3f704a8 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2690,6 +2690,7 @@ void __init boot_cpu_hotplug_init(void) cpumask_set_cpu(smp_processor_id(), &cpus_booted_once_mask); #endif this_cpu_write(cpuhp_state.state, CPUHP_ONLINE); + this_cpu_write(cpuhp_state.target, CPUHP_ONLINE); } /*