Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp1992046lfo; Sat, 28 May 2022 12:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytKPS9kaIiEgy4H/NKaSYzUSSPuggJfLkLYbUsIXsEA/Dw+2l90EZivn8EAPAGEDVMqjpQ X-Received: by 2002:a17:90b:3a89:b0:1de:bad4:b614 with SMTP id om9-20020a17090b3a8900b001debad4b614mr14876027pjb.139.1653767970102; Sat, 28 May 2022 12:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653767970; cv=none; d=google.com; s=arc-20160816; b=0//OK9nQB2WJxmjm+iToJfG4zuuh12L0PlLSln9tVqj0+1eWUZTMX/ZpfCmQpQTjZo tlqOTQbEOswSajCr8JWQsi5yyoc4P2rQ5/5ObVjXyBbrZU6PTTMHDzeinVmx39ZStBuz WAd/TUXJUxzCWSYVuDYeSRoeKT/IHrhoWpbpf199j/6iCcRjiL+r4Ung1aoh8GdN+Y/I 7Q9/jWWqxhhqThzsJqUH64eHTW1rrv23igiwJKdnoItWkkuwaCd3qK1WyIP/pbdYvbPI lhsDi73LlD+aI9seoTAL8tIJOJEG+53DmQPz66XPlZIfMP1okI+Ap2AEajOdzBG0R6Qn TGoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=+dxJgteJ4eYA2hPblerYsI7xTL/JrWtd/SRhGAQjbDE=; b=Qmj/nAr1TEJBlJKVFgeev4dgB6RyOrMWC4KL72D9aoJN250hzHJRoNiwga6LwvDang 58W+jd+lod7z3gD6KOG7J7gRcxzbaj6osWoPmZZRhxxj5oNljIY87CS1hRZELOj0X1zN 9x2Jsj3go3dGh7AC0MnxxU1/cloeKK5dOsmbmEKnN5A/DT+oK66Qf9bVBvSFEnWARsZ0 nWY2oAaTYlJGYcZ3IBJ2EkJhuuHV6riujifp4kwb0qv6FVhPbsCzUfGTwZQBryGvqdti /o8VIlx0+cR1rBPRHoNRnO6nE33pUXWl+BA9RSe2HJ+kDJq5wwyDPs8YX2U5MS5tZU8n wKMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FmiB+TrO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mu17-20020a17090b389100b001dd177af7fcsi7221349pjb.182.2022.05.28.12.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:59:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FmiB+TrO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A4737B0A40; Sat, 28 May 2022 12:17:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350631AbiE0Jio (ORCPT + 99 others); Fri, 27 May 2022 05:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350605AbiE0Jie (ORCPT ); Fri, 27 May 2022 05:38:34 -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 E60F554015 for ; Fri, 27 May 2022 02:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653644311; 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=+dxJgteJ4eYA2hPblerYsI7xTL/JrWtd/SRhGAQjbDE=; b=FmiB+TrOxqVHTnvNhSrCOXsLZCErWdstIIQNDPgj/v4OoedGxh5KMrhneaIHjFCGm2RxYR pjBqbiUNRDqMLMLFgxJOpjcfCrDB+Z2LA4AUFuJCKOaUnQZ8zqYzdiV0FXpL62m2KfS2nq xEFYxjw3KQhz/rEGoj/B4StZHSxNDbc= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-377-79Gj1KbXPXaG2UBnnAxlAw-1; Fri, 27 May 2022 05:38:30 -0400 X-MC-Unique: 79Gj1KbXPXaG2UBnnAxlAw-1 Received: by mail-wm1-f70.google.com with SMTP id o2-20020a05600c510200b0039747b0216fso4559600wms.0 for ; Fri, 27 May 2022 02:38:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=+dxJgteJ4eYA2hPblerYsI7xTL/JrWtd/SRhGAQjbDE=; b=3ylFN37n2WDybcbgb7Gex91F7DXwdasLH+f4XyK0QSWZIOHrs3zxGImamQmxhFggyJ tUgJx0f4wwmT2ntkXs8weUF13TFrezo/Ao8xke8Xk52qB9fdMaAsbAopsKDj4emTiVQC 51QzPfrKB1k+3g1bk8/WiVspYM0aikjvQDvAsHo/hvqqVG3YakOISoUMA0lShzgNDAvD pjkMOllR9aA3FlUY3B4qd37waY7Xpi/LpRwS3JgvIsOMQJh3N3f5xAVjhNFVNU8omSOi 2kGJ7jCsDx5q5cTPG/PbGFTvzy1gFRGA0GxzNNvCrRlyQcb1Gd06GH2EImO9GieV92zq Lb3g== X-Gm-Message-State: AOAM533Ym/LZYCDbRoBTePT7KlTa0kUb5mVMfhuWjyHlSKqYI4oDvy8R 1rJ8ojjxMkg7X2USi7jmQ2687hxNIE3nx72Ows155UL4jLP4fkDxRS9cbKnYnzjVP4lZWUliq9U TZr/UjIere7v0rBhyuWvqacUC X-Received: by 2002:adf:d1a1:0:b0:210:1ed6:3c83 with SMTP id w1-20020adfd1a1000000b002101ed63c83mr788491wrc.345.1653644309047; Fri, 27 May 2022 02:38:29 -0700 (PDT) X-Received: by 2002:adf:d1a1:0:b0:210:1ed6:3c83 with SMTP id w1-20020adfd1a1000000b002101ed63c83mr788488wrc.345.1653644308910; Fri, 27 May 2022 02:38:28 -0700 (PDT) Received: from vschneid.remote.csb ([185.11.37.247]) by smtp.gmail.com with ESMTPSA id h9-20020a7bc929000000b003974a3af623sm1705244wml.17.2022.05.27.02.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 02:38:28 -0700 (PDT) From: Valentin Schneider To: Phil Auld , linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH v2 2/2] cpuhp: Set cpuhp target for boot cpu In-Reply-To: <20220526160615.7976-3-pauld@redhat.com> References: <20220526160615.7976-1-pauld@redhat.com> <20220526160615.7976-3-pauld@redhat.com> Date: Fri, 27 May 2022 10:38:27 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 26/05/22 12:06, Phil Auld wrote: > 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 Reviewed-by: Valentin Schneider > --- > 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