Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3718851imw; Mon, 11 Jul 2022 14:26:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ur6Aa/NRr+YSNWZMNdcNmk/qDktHULgJ2apA7ccdQZp62evl/90rD6dXI3ECJOwkQUbV6O X-Received: by 2002:a63:9049:0:b0:412:b11b:c630 with SMTP id a70-20020a639049000000b00412b11bc630mr17315699pge.175.1657574781489; Mon, 11 Jul 2022 14:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657574781; cv=none; d=google.com; s=arc-20160816; b=Haqf2tfc1TX/cIL9x2xzOT4UN2XqIELZdLoBjE50QJFS+0mDoGPuFJqTXZzfRZm/Q4 J+IjHroeZ+bJCL2xkFwvlYgwov+oyt6Y8R8aRkVVGl9CvIC8jYNKzRwQbI3dux8V54hD TkXEzCQjaqpZSugkgVmNdbJaiN+S0ni0X7Qnm1HtTl5KShPma92huWcTPOi1DLhpe5LZ pn9g8Cg6EnZ6ymgLXksEfKZHiCiqPTdMlfIKFtwWLuevAI4eJZGD+j6Wm/VBafujNLnb w/PAoIDncYdw6OuRrkeMKmG0bLQrMhZxbUJXnE08TzvXG2Xl/9Jg/DXI3EPUrqq6hPKl 1c7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nLmRjFgRdRfGxyaNnmOGdO+qzhincW9I2IkPSw2Cgdg=; b=LLLqGGyESbGwxgQmvGsdPuJYVAH4/9UyIy2/W8hkGp17oh5IXbk1CocUuBpVW4k9LH bSXxIDiAhcifmngNHNXoD0RlitW8Umn6rKuRv25ZFqeX71XqxoRnTj1IQDXmdErf+9ex kF1LHn3J8jHiFVJGrc4+2dpWC4LR4gk9/ge1ipAMAO6X021BVz44h0cILBVnkJwQOGZy idCyZc7i9N3O9W8ZWYZ34S/OmtYYXv4EfmMo4hTZbgdnyo9tYvhBnqCA8gvrfHl9/4gK Vritz7jOpU7xSvlOK3xhmpZjIru9PSLapbTcMJ6Akurzn+BuHpGhf5kEH8QdbEmZVZ+G ew8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fl6RNpIB; 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 l3-20020a17090270c300b0016399622169si10351633plt.46.2022.07.11.14.26.09; Mon, 11 Jul 2022 14:26:21 -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=Fl6RNpIB; 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 S232041AbiGKVQ2 (ORCPT + 99 others); Mon, 11 Jul 2022 17:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231998AbiGKVQZ (ORCPT ); Mon, 11 Jul 2022 17:16:25 -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 187CE823B4 for ; Mon, 11 Jul 2022 14:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657574184; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nLmRjFgRdRfGxyaNnmOGdO+qzhincW9I2IkPSw2Cgdg=; b=Fl6RNpIBiFQB9VeCNkImGO4mD96qhG3sTD6kr+ykKj8Egdgj9jIK9jJaW/3jvaHOhl/QnE MaGLioFv1WFyaIgbFu5eIROKgkJE+wCUnNfx9Q/poBAlJ0czNbSy+TwF4HCnQ9Pqq5qFap Qd3lG/k78RI8NCjFR2c9MObGSw5X3n8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-147-d3oeHARRP4iykw2aRydtAg-1; Mon, 11 Jul 2022 17:16:21 -0400 X-MC-Unique: d3oeHARRP4iykw2aRydtAg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CB191380451A; Mon, 11 Jul 2022 21:16:20 +0000 (UTC) Received: from pauld.bos.com (dhcp-17-237.bos.redhat.com [10.18.17.237]) by smtp.corp.redhat.com (Postfix) with ESMTP id A918D2166B26; Mon, 11 Jul 2022 21:16:20 +0000 (UTC) From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Valentin Schneider Subject: [PATCH v3 2/2] cpuhp: Set cpuhp target for boot cpu Date: Mon, 11 Jul 2022 17:16:19 -0400 Message-Id: <20220711211619.112854-3-pauld@redhat.com> In-Reply-To: <20220711211619.112854-1-pauld@redhat.com> References: <20220711211619.112854-1-pauld@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.4 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 305694a2ca26..104f43a6f4ad 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); } /* -- 2.31.1