Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp777023rdb; Thu, 30 Nov 2023 19:48:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0SQDdaqKRPpaLV6LviRIJ4qipsVOrqHohxkuD4VNM7bjmpuFlL0OFsM7qjvUUSfykndqm X-Received: by 2002:a05:6a20:729e:b0:18a:f5df:5f88 with SMTP id o30-20020a056a20729e00b0018af5df5f88mr25981237pzk.62.1701402488284; Thu, 30 Nov 2023 19:48:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701402488; cv=none; d=google.com; s=arc-20160816; b=pqvJi3ESuBWK4RjBCS6VZbUeDfjez/2W0dZ+zg+ehLADDi8LroL7BW8qAhEnMK52gX YwdjvPY479T0pa7BbI4LSIIL81uBXEN1Naz1CYlKgqkV4NrCszd2KALVeRSNPEiCDptS nxIyAxlHvDqgbruOIDGSf5zRErJCaJlLWA/2FrKIZfofrMoGQMv57iwzQDkm6zaxBVSH HS2i3+OKbZFuL5Ur1otTOqn0Ct2VfUgNQCRlFQtBQ5/ujW5LkyZmIZghbzZCffZuoYO/ XA+AUzW/f03mAtk+p5gtBj9aFf/lS5LW1pdLybf0JeXMkbzc0eRj/N8i0Zk44rYPQ+RA XYvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lkYkgQb1oSonM5Ah318XDYvX5RNZmhN/5LooxGJ95vQ=; fh=+f1qOxj6Ov7kB7LNy+zbdLqq19RS//JLZ9tEn0J8SSs=; b=gMNTK4/hXqaooRPeaPTQTxyRhbtn8PvYBHtXOmfDwYFfPRNZzsvuKYb7NmhvGkTHXa c7kYG6zCxsjBxr/MP33L7NQ+QbxF/1IeOaNQxJ2rXKhq5E1bfPABMm2vIEjyvIcBNYiD nE/BrQW9ufkWZOE++MlgtrwfCSdnmfnDNXJstDJUi1X2juuX48bJbKCIdWTYNUOi6lgR Z7GrbCSg22bRp0wszDNlA6Y7n1YjlqOI2hnpoR7h0eNMaWFi0zJ5DVHdpKZpVnTV5Wsz elVlHCaXDdV/fcs1UXFMmOVrQ3ylKaM8wjxPyKLXqpcCMniDQLbWlGIevNocgRmbY0tG q8bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W8b8xMzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id sr7-20020a17090b4e8700b0028023efb800si2776250pjb.18.2023.11.30.19.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 19:48:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W8b8xMzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E5EB6807C746; Thu, 30 Nov 2023 19:48:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377201AbjLADr4 (ORCPT + 99 others); Thu, 30 Nov 2023 22:47:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbjLADrz (ORCPT ); Thu, 30 Nov 2023 22:47:55 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91AAE1724 for ; Thu, 30 Nov 2023 19:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701402481; 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=lkYkgQb1oSonM5Ah318XDYvX5RNZmhN/5LooxGJ95vQ=; b=W8b8xMzqUkxOrqytylop2P45XZpFjvsavV5pZXo+tGWZbO9elj9KP6uJYne8jUIExklptg u6ww96604We+YyRgjyBXFBhxAJsfo0CKdg8IrtDpcONUpMnHCCUGkz0LpWYqnlFdyW02Bv SGE3hrPWZgKRYdTLnVWafXUopmHJa1s= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-517-l4ag8GICO5GKvd0qSJW2Iw-1; Thu, 30 Nov 2023 22:47:58 -0500 X-MC-Unique: l4ag8GICO5GKvd0qSJW2Iw-1 Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-6cdfbba2c4dso678990b3a.3 for ; Thu, 30 Nov 2023 19:47:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701402478; x=1702007278; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lkYkgQb1oSonM5Ah318XDYvX5RNZmhN/5LooxGJ95vQ=; b=FuyKB5lmIsKsnDStrawGgWYqDP9qInj6RXOnBKbHujtUiUmVS2Zg4z800fXFo0wN1Q XFaXsPVV1axMtnhcAXcs5aGXq4pXyBAyLubJHyafzgxY+1kPNdZp6vSoPy0EuQwlWYub q7wcqhEDVAirL2U1MKBmmrYLkHFP0vcVRwbOtugUdbb8900T9MzcUnydfnKHVUFF5+m6 UmYZDy2tS3kqXf+3FwyTIzEoe2gAQuvx4bYCwzgzLtLQUHHztHOTiIs9/CF7opesWupG gF2P1kjXN3AAY/PJPSZMfTRd1yJcReMarBicuRKGQIeOb+vQ8Y3MwOJntKS0eRN5T730 cDvQ== X-Gm-Message-State: AOJu0YxmwUoV2OR1TQ2/sgqCGihy8pwWAI90tTQNDayLHVbXQdU12TE3 N11Neoue2MT1BtQf9CVOkUVWeNXZNFo3l4KLJcOey79sWQ3biPrq/C6zzpFM3+FtYWvo3qgrOxH ogxnYfGIfn2LMbb4U0Xi1uTY3 X-Received: by 2002:a05:6a21:3513:b0:18b:236d:3f0 with SMTP id zc19-20020a056a21351300b0018b236d03f0mr27000773pzb.43.1701402477953; Thu, 30 Nov 2023 19:47:57 -0800 (PST) X-Received: by 2002:a05:6a21:3513:b0:18b:236d:3f0 with SMTP id zc19-20020a056a21351300b0018b236d03f0mr27000757pzb.43.1701402477684; Thu, 30 Nov 2023 19:47:57 -0800 (PST) Received: from [192.168.68.51] ([43.252.115.3]) by smtp.gmail.com with ESMTPSA id p5-20020a170902e74500b001cfc1a593f7sm2185691plf.217.2023.11.30.19.47.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Nov 2023 19:47:57 -0800 (PST) Message-ID: Date: Fri, 1 Dec 2023 14:47:49 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/21] drivers: base: add arch_cpu_is_hotpluggable() Content-Language: en-US To: "Russell King (Oracle)" , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org Cc: Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Gleixner , Peter Zijlstra References: From: Gavin Shan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 19:48:07 -0800 (PST) On 11/22/23 00:44, Russell King (Oracle) wrote: > The differences between architecture specific implementations of > arch_register_cpu() are down to whether the CPU is hotpluggable or not. > Rather than overriding the weak version of arch_register_cpu(), provide > a function that can be used to provide this detail instead. > > Reviewed-by: Shaoqin Huang > Signed-off-by: Russell King (Oracle) > --- > drivers/base/cpu.c | 11 ++++++++++- > include/linux/cpu.h | 1 + > 2 files changed, 11 insertions(+), 1 deletion(-) > Reviewed-by: Gavin Shan