From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDE615232 for ; Mon, 13 Nov 2023 00:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JIEKbx0i" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF1BE1FFB 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-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-222--zO64OpuPwyUPni-JHwfyA-1; Sun, 12 Nov 2023 19:57:07 -0500 X-MC-Unique: -zO64OpuPwyUPni-JHwfyA-1 Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-5bdbd1e852dso4630212a12.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=XgfJpHoV/p3e5iAAH3YV+BPHVbsLCdj2/kraPgIrMcgddi41evCgC/yTyTC+NVi7e5 Odutvk2sadQHageejPcVN9e9dH6ySIcWBDN875bdrLtq8eEM7iTl+q/M/3P4EW4rsyW+ aXwTDkcX8Z4++VfCIENHAjrzU6+A8nbcKNIooRgP6W7H3Kj22sxzdFy+f80GSMueXugO qlaBsYoJ6h4AGHUC8HhHqVq7QPxBjGBzouD/kYTzab/PsjUJWRn73VQ2uY5lA05e9F1x g15bFXn4s182bpMw31VLhK8Fn0Q5ViahWRkcZFPAl7ILEgsI54AsjjpixZQKgp2XVlgv moyg== X-Gm-Message-State: AOJu0YyEOx2XeA/C1SiquKraSeGJQ28QHITztnZuzXhHAK90fSYACamN d3mtkGrbO7Non32uiFXuG/Gz5IHBO8GKKo6wdl8QePFA4P8rsgA0SFn0S+tIPJf6XnJOHTZCN1y J9FPVAzwfxTrVksNf/T6+ng== X-Received: by 2002:a17:903:41c1:b0:1cc:5ed4:7b4c with SMTP id u1-20020a17090341c100b001cc5ed47b4cmr8056815ple.35.1699837026079; 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 Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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