Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp449084rdb; Thu, 30 Nov 2023 08:50:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHChP+JCFtH5XIhJc8HTWKhmPiwWXpRRhmGJg91MgCeeg88EC7h5Pg2D8TcXdExn4LSy1X2 X-Received: by 2002:a17:902:f691:b0:1cf:dbda:7307 with SMTP id l17-20020a170902f69100b001cfdbda7307mr11873150plg.39.1701363054187; Thu, 30 Nov 2023 08:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701363054; cv=none; d=google.com; s=arc-20160816; b=ai7FFoVDubFstyNwUbVxrwZJhgoipZVppFlVRCn6HRdthKjghvuFuJNHkLPK1MmDPp lro5QPeuwI2+hOfFjkyUug4qu/zh6jnGdZlB/x+xdHy6VL3JFhqcMoaPZ48m1u2eSFZc RVoOJVvWZ0aJ32I2e8fe/ZHuY136nHkDG6Do/FX0nwfOZgp3EzFgunjFupGzPZL/tjTe xo/s79DAtl8o5Vd4nSv5Obbw9Ks7u92Xq1oiKQc1v60i+91EsN05ns/SJlmgJZZDN4vx u53HhNVuyQh0Vgi+3mdpJ7WGqwHGy4Xp+1R2CYWU5mbHxll/xJ9Eh90A2eSoeYyVDGle 6VWg== 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=F3tLmMRYeV9w6AuzwhouOGAf2YfBJZsnw129CveCsqE=; fh=djcCujQimTew90J7FTgqEL0q5lPpyaCqPJin9sUiGkg=; b=oDRdv+gYogPuuhMEojFL8Pg4sI16bK5jDCuA0pMLFz7SSM8ml6JgUUggAdPk3njQZ6 AEu0vfHvnc8pTu943n8VyRpgaxPRA/kEjg0+lmNS3SVpUDNWZ8Wfz1PTYEjM4JNvrILZ ulVo2oIna6xFJ0pFG/fGYlnDyJya78K6lK7lgX/RE4WxSM2vfatO2y+s8O9gEHVhLHyH NJ5DeyInFDEfYGyyy4wjlar19fS9C+U+ki/iYxFdy9rVaiTuNDzemY+p7KVk1RPEZTCb P8FlVFKyP6NCSd0ZAr4q/TT+/iabn6e0y4U8l/WyF5HcFOUblYGuPRNXdWNNdF0wvcTW pnGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w8-20020a170902e88800b001ca24970584si1629688plg.572.2023.11.30.08.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:50:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id E6FCD807832D; Thu, 30 Nov 2023 08:50:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345684AbjK3QuJ (ORCPT + 99 others); Thu, 30 Nov 2023 11:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbjK3QuH (ORCPT ); Thu, 30 Nov 2023 11:50:07 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FCB81A4; Thu, 30 Nov 2023 08:50:14 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sh2Fc0L5mz6K95t; Fri, 1 Dec 2023 00:48:36 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id A71D514058E; Fri, 1 Dec 2023 00:50:12 +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; Thu, 30 Nov 2023 16:50:11 +0000 Date: Thu, 30 Nov 2023 16:50:11 +0000 From: Jonathan Cameron To: Russell King CC: , , , , , , , , , , , , , Salil Mehta , Jean-Philippe Brucker , , , James Morse , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH 07/21] drivers: base: Allow parts of GENERIC_CPU_DEVICES to be overridden Message-ID: <20231130165011.0000703f@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: lhrpeml100005.china.huawei.com (7.191.160.25) 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:50:25 -0800 (PST) On Tue, 21 Nov 2023 13:44:25 +0000 Russell King wrote: > From: James Morse > > Architectures often have extra per-cpu work that needs doing > before a CPU is registered, often to determine if a CPU is > hotpluggable. > > To allow the ACPI architectures to use GENERIC_CPU_DEVICES, move > the cpu_register() call into arch_register_cpu(), which is made __weak > so architectures with extra work can override it. > This aligns with the way x86, ia64 and loongarch register hotplug CPUs > when they become present. > > Signed-off-by: James Morse > Reviewed-by: Shaoqin Huang > Reviewed-by: Gavin Shan > Signed-off-by: Russell King (Oracle) Reviewed-by: Jonathan Cameron