From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF8B3C4167B for ; Mon, 13 Nov 2023 00:57:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232673AbjKMA57 (ORCPT ); Sun, 12 Nov 2023 19:57:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjKMA55 (ORCPT ); Sun, 12 Nov 2023 19:57:57 -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 443B71BE6 for ; Sun, 12 Nov 2023 16:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699837028; 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=JSnhv2PPOYa4ZnCU0cai1bmRuczHu96zHiRWZODUn4U=; b=JIEKbx0iSQdpX0FzLBFeca4pVo9PpRzKrNE5sISMEF1tFi1eCuP+8sR/YBVpTFFnHRdvt6 ya7HB9jqGdgH/BPKJTcYFSgyUFhDH5Y2G3hWygrkQyftU+3MLhhIxc+z70qQYeHmnL+QYu WDdJ26M6r3kSDk0YUbQUk0/YbjG/aDI= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-oU7ZbWC-PGCwutkYRM-WEQ-1; Sun, 12 Nov 2023 19:57:07 -0500 X-MC-Unique: oU7ZbWC-PGCwutkYRM-WEQ-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-5bdbd1e852dso4630209a12.0 for ; Sun, 12 Nov 2023 16:57:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699837026; x=1700441826; 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=JSnhv2PPOYa4ZnCU0cai1bmRuczHu96zHiRWZODUn4U=; b=vHwPFBLjkMq6TzkGnu+DBa4CQVSSRkZ1hKYEoWG5O7TsqRwMZR0OQnEDIgvxELcnTm jL79R2Bw4UVNXBEsQJ/KnBDDeuBkUzsGReKIfCYkb0KDA+qmJ5Yyd5Coec3Kx3WCsQ2q sNLJyQ3Ra1OJ3I3U2hL6v0LZE8rO2f1haAssostALMloQ0wBH+6V1quvrlwxro7IgQEN FoHOtkXlPjC5JIZtrVOPg/rq/1a1YBAVrPWln+O3/9NL0WlGaN0fmQ/c1DzDL2c3UsSD rgyiWoOnrfllA7hbi0KMfFztT9KlVXD1+7C8am+n+D/JWazXLlj9NG8/3RGiFYSG/6nA WzxA== X-Gm-Message-State: AOJu0YwAHxWUZf3G2MzFq+TXNZaDLNl/R0ac/zOdUoDboAdr8DqxxDim E0bjL1dV9IzFrpavoDw3f8IDmyH3YPQrejis4AKM4B6SreUk4oxFe8NIQKaufR8381oKD4FLrlZ BdZT9nTaFPsFYajnkHMmzK2l7 X-Received: by 2002:a17:903:41c1:b0:1cc:5ed4:7b4c with SMTP id u1-20020a17090341c100b001cc5ed47b4cmr8056801ple.35.1699837026073; Sun, 12 Nov 2023 16:57:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYB8Gjvjb9rpzJlKa/gGoy1/kAMp5o6DcRuutNzYMQOmMyg/HSI8WRyf/v5bwebYCVyW6+ig== X-Received: by 2002:a17:903:41c1:b0:1cc:5ed4:7b4c with SMTP id u1-20020a17090341c100b001cc5ed47b4cmr8056788ple.35.1699837025799; Sun, 12 Nov 2023 16:57:05 -0800 (PST) Received: from ?IPV6:2001:8003:e5b0:9f00:b890:3e54:96bb:2a15? ([2001:8003:e5b0:9f00:b890:3e54:96bb:2a15]) by smtp.gmail.com with ESMTPSA id h4-20020a170902eec400b001b03f208323sm3058989plb.64.2023.11.12.16.56.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 16:57:05 -0800 (PST) Message-ID: <2c597d46-9e15-4059-9386-a811fa7b65dd@redhat.com> Date: Mon, 13 Nov 2023 10:56:56 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 09/22] 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/7/23 20:30, 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. > > 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