Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp765597ioo; Thu, 26 May 2022 14:26:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu2HykGBUxJXGsBigVUoNafwVN4b5uPWDDY6pUxdjFx/E+RGm6p4xzUDua5ZEONd4G1SqW X-Received: by 2002:a17:907:1693:b0:6ff:be2:fe6b with SMTP id hc19-20020a170907169300b006ff0be2fe6bmr11045194ejc.674.1653600385510; Thu, 26 May 2022 14:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653600385; cv=none; d=google.com; s=arc-20160816; b=1I8IDt/0p7l7Np8MniUAhBDk7BRtaa4j5xpDfNFFtW6CNVRnVlTBSoFhyln98Y5x4S BZpAtGHrdRIeYBOaKN0OtQgUzzAb354+elzRxQCyZmxfA2x9tqAJBkrsDlk7XzuAuVPs yVtjI9vClWXIvUMOQDnV1CfitXvnounoDV0VRUf+7oY2v2pGqvo1RaM1SUo/ZNc6aVHd YjquWNNwgGX/tw+NE9T9EMQwVC6ow5FklpcsKUk3mxulWnWF52H+ZMzM6WbeW4cwdXKI 1dpSW7h/9nMZOQtad0J2AIw/yXxW3X7BE8dn05KnSAgXc7DjNGqq8RjUp+d34y1uqeWd 7HUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=iwi7fI79x14zp8Nxg6Mj0tqfrT7uVXql05h1VWd4Das=; b=QylfmvuCTVrvLrQzh3bXqmL3bZc3OJh8CuNtQO0uyXG/2sTdh2N8AJhZY+cvRuP99+ MFdbxHmDFZAy+7t4OtS7OvySpkuLNTQXMLADYTrcwqbHcZZCwivi8RwetgJ14RjN4dIs ojz6oKIniaTc4Hlrmdil1j1jyULfnKUovha04B5SPN7OdPI6vDM0lG96ozVhnA0TObIO jpxG1gcxTZodBB499Z8JvP/eBZgPeX/Jik3sHr26ryc94B0ZssjUShE4PflZ7cIvS22f K9Y4S1AQ4JHKs62hWhFw0hQXqb/kfkJorNmaIUyUxZHa2+gGxqKNrn6Xsu9FpGoItDnH eWPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Uh8Z0G1C; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg5-20020a170907970500b006ff335da106si684916ejc.579.2022.05.26.14.25.57; Thu, 26 May 2022 14:26:25 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=Uh8Z0G1C; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348089AbiEZQGW (ORCPT + 99 others); Thu, 26 May 2022 12:06:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbiEZQGV (ORCPT ); Thu, 26 May 2022 12:06:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A2A12E08F for ; Thu, 26 May 2022 09:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653581178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iwi7fI79x14zp8Nxg6Mj0tqfrT7uVXql05h1VWd4Das=; b=Uh8Z0G1C+uzbYA4P3C/VHTT4H+je0tgwYdAG7eCry45vryVjXSEDV80274O7jB3doYymhB pTmfQn1IvsGCDS3Ck+kNXps50xH2Sc5LkUQcbOf7sZULGNUkeVgcoA4tYjN0Wl4Eu3pbeW kKYzGNdVmY9DBQy2kki3rKkehzNCBqc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-443-KnmA6uW4O9qwe0CWVMN46w-1; Thu, 26 May 2022 12:06:17 -0400 X-MC-Unique: KnmA6uW4O9qwe0CWVMN46w-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BD3DB833973; Thu, 26 May 2022 16:06:16 +0000 (UTC) Received: from pauld.bos.com (dhcp-17-51.bos.redhat.com [10.18.17.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9AC8740470C2; Thu, 26 May 2022 16:06:16 +0000 (UTC) From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Valentin Schneider Subject: [PATCH v2 2/2] cpuhp: Set cpuhp target for boot cpu Date: Thu, 26 May 2022 12:06:15 -0400 Message-Id: <20220526160615.7976-3-pauld@redhat.com> In-Reply-To: <20220526160615.7976-1-pauld@redhat.com> References: <20220526160615.7976-1-pauld@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Since the boot cpu does not go through the hotplug process it ends up with state == CPUHP_ONLINE but target == CPUHP_OFFLINE. Set the target to match in boot_cpu_hotplug_init(). Signed-off-by: Phil Auld --- kernel/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cpu.c b/kernel/cpu.c index cdb6ac10ad94..0bb8ad0fa2d9 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2677,6 +2677,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); } /* -- 2.18.0