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 9FC92C4332F for ; Mon, 13 Nov 2023 00:43:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232601AbjKMAnu (ORCPT ); Sun, 12 Nov 2023 19:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjKMAns (ORCPT ); Sun, 12 Nov 2023 19:43:48 -0500 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 CC8521FE5 for ; Sun, 12 Nov 2023 16:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699836179; 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=iQsxdmKsC9+VQQMbyUjXPaZGEeJW41wCAFBZ7vfsBQE=; b=Dz9tAZKeZQLH5kwYITJxIMehuSh3eiJZPHUVm3e56fVkCUGYcUX4SMD96kzjjjfeEBvBWO ja2ErnaDNIL2aU4TkWJ2I7vVcDYIz6OZcoIV1GdbNW5oRWPS/shS68yqrFmshG+Jp8GVkD PlNBETdihDlfhBH+I/U0bQg4CablLds= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-cUCKxeWvOx6cHkcFN1x8Yw-1; Sun, 12 Nov 2023 19:42:57 -0500 X-MC-Unique: cUCKxeWvOx6cHkcFN1x8Yw-1 Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-5c19a2f606dso356454a12.3 for ; Sun, 12 Nov 2023 16:42:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699836176; x=1700440976; 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=iQsxdmKsC9+VQQMbyUjXPaZGEeJW41wCAFBZ7vfsBQE=; b=ItXcY9yvDnhZDOdT1Ue1i/dYxGrBF7oCKge9GH8YDvWpSxY6kaO9bPSTLPvUE8z61h ZVKD7Ds8Iu5s9z7IJSaIlASaGOAV+DlfZuOraWoEPKHDdeMXn4Z5AAAk1jh/qqZ8JO3s NWHIh7FR9kCIrrC8zhzXbbThKlX+FmQYKB0dKl5k1nirnwmm51wqtNckZ4faxHI/jMh1 TsFCMUlk6zZ0zk8T2dk076PS1CghqEV97ohSOVUBZG9+NZ0usjh06/Y2cxKju0rRpyoG OhBapoj5j/MvHDFwZ9f4xuIvJBZtBLVX/IKsSCZb3VdkzppY99UHedLp8bKREmiCSj8A Ny3A== X-Gm-Message-State: AOJu0Yz32mXD0DDDFbGhZon8TuXTbmlNHHsmmULFVoXfZ1aiwT+M/SsZ YZAtaS8j9VwAioHUTf6YB3A00jk36sKZHthI+eW/mDEA7nY0IcoWPdc8AP5gz5sQmjEHL2cRJH9 EE5zpGgucDz8X3B+RnIu/9+retlsBRO3I X-Received: by 2002:a05:6a20:7494:b0:174:373b:4381 with SMTP id p20-20020a056a20749400b00174373b4381mr3583339pzd.49.1699836176468; Sun, 12 Nov 2023 16:42:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+UqzLZrYxi+tnG161U/VKxrumNhVvJntX1X+LzLVicHXhCNQwDg9kYlUeFf4mFvRVo9YyxA== X-Received: by 2002:a05:6a20:7494:b0:174:373b:4381 with SMTP id p20-20020a056a20749400b00174373b4381mr3583318pzd.49.1699836176231; Sun, 12 Nov 2023 16:42:56 -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 q23-20020a62e117000000b006c0328b2440sm2948031pfh.150.2023.11.12.16.42.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 16:42:55 -0800 (PST) Message-ID: Date: Mon, 13 Nov 2023 10:42:46 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 07/22] drivers: base: Allow parts of GENERIC_CPU_DEVICES to be overridden 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:29, Russell King (Oracle) 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 > Signed-off-by: Russell King (Oracle) > --- > Changes since RFC: > * Dropped __init from x86/ia64 arch_register_cpu() > Changes since RFC v2: > * Dropped unnecessary Loongarch asm/cpu.h changes > --- > drivers/base/cpu.c | 14 ++++++++++---- > include/linux/cpu.h | 4 ++++ > 2 files changed, 14 insertions(+), 4 deletions(-) > Reviewed-by: Gavin Shan