Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3916724rdh; Tue, 28 Nov 2023 07:11:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIkMZ/KLiQaFubDfYBSIoB0h4ZIIgfho0EckN3AJQlJMNPoiPa/zWQ2YE3D4dVrceBGIac X-Received: by 2002:a05:6a20:c18b:b0:18b:251d:d6fb with SMTP id bg11-20020a056a20c18b00b0018b251dd6fbmr18291511pzb.1.1701184298756; Tue, 28 Nov 2023 07:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701184298; cv=none; d=google.com; s=arc-20160816; b=tDrTA7QlY2gmjixRiBxjQQeDCG1d5FBNzJN9CganuTnglcEwyO4WArBu0hSYxlyP9k Cl0Qz+kkpVm4fkT7SoekoDU743fOUBZ9mZFi68/afS4cIAvicc00WxP2DX+bws6asP8X WgHWYX2/h4anQjtPuvByuzjWBMOc2VUdYk16U5eoX/lbouBV1Xmh9gqM5aA3gqUtJ+/H EeHQG5wPE9rphKWsEbbwSGN0rWQmsVDDjA2Aq1D9qEKsfY7/xFWyzokzCHJ8QazSUEQQ WW1FFAFBThFI6uWi7UYydD8PUExVlvvszzgzHYS58MWfJlvwrCmg1Euhl+3jywfsR81k V17A== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=CI4CffpcDW16qygPQsx041jC5M9lCobL7vP9a13Nc64=; fh=YSyoBOwBmeMBNo+1K4ny3awGPTyGubvwldbOGYC0soQ=; b=T214OLqKOx8gC1LWSd1Df3JxdM2WDP5/nf8/3dqKYxGlwoHc/2LBP9I7RcqpZZcTVM oarOsZUkizhZP1EdydZIitE8H3Iw+durvT8A7xh4tHeOE4l9VlzQfUgganZycDimoyop 9KeV0k4jYkkihqy8avGIJtf9FsJnZXnbZl5sXuYZtYINAAv3d807Xf7JuDwKQMFQmHbq UaP4PP+zY3jBdkW2IDJGPywFbuS/QKNFHBlhNBcVqbScFuwqemFAxL5b9OIKPoTPQchl hV2opVH8NGIG63whxamP/4DEQyvmHGO6svESqCnBFTgbmaLTp3Ru1tc+U2ycojdniWHv Qzrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k5-20020a6568c5000000b005bdbeb537cfsi12287743pgt.186.2023.11.28.07.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 07:11:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 78953804486E; Tue, 28 Nov 2023 07:11:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346673AbjK1PLQ (ORCPT + 99 others); Tue, 28 Nov 2023 10:11:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346615AbjK1PLN (ORCPT ); Tue, 28 Nov 2023 10:11:13 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18321727; Tue, 28 Nov 2023 07:11:18 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sfm9v6921z6D8Y9; Tue, 28 Nov 2023 23:10:59 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id D505614025A; Tue, 28 Nov 2023 23:11:16 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 Nov 2023 15:11:16 +0000 Date: Tue, 28 Nov 2023 15:11:15 +0000 From: Jonathan Cameron To: "Russell King (Oracle)" CC: , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , Catalin Marinas , Will Deacon Subject: Re: [PATCH RFC 14/22] arm64: convert to arch_cpu_is_hotpluggable() Message-ID: <20231128151115.00007726@Huawei.com> In-Reply-To: References: Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500005.china.huawei.com (7.191.163.240) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 07:11:33 -0800 (PST) On Tue, 07 Nov 2023 10:30:30 +0000 "Russell King (Oracle)" wrote: > Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than > arch_register_cpu(). > > Signed-off-by: Russell King (Oracle) Ah. Or previous patch needs a forwards reference to the tweaking of it it here. Maybe just smash the 2 together with a Co-developed: ? I don't care that much so whatever works for you Reviewed-by: Jonathan Cameron > --- > arch/arm64/kernel/setup.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > index 165bd2c0dd5a..42c690bb2d60 100644 > --- a/arch/arm64/kernel/setup.c > +++ b/arch/arm64/kernel/setup.c > @@ -402,13 +402,9 @@ static inline bool cpu_can_disable(unsigned int cpu) > return false; > } > > -int arch_register_cpu(int num) > +bool arch_cpu_is_hotpluggable(int num) > { > - struct cpu *cpu = &per_cpu(cpu_devices, num); > - > - cpu->hotpluggable = cpu_can_disable(num); > - > - return register_cpu(cpu, num); > + return cpu_can_disable(num); > } > > static void dump_kernel_offset(void)