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 C586923B4 for ; Mon, 13 Nov 2023 00:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Dz9tAZKe" 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 CB8021980 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-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590--00KIceuPjKB9j2Ws_dEog-1; Sun, 12 Nov 2023 19:42:57 -0500 X-MC-Unique: -00KIceuPjKB9j2Ws_dEog-1 Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-6c334d2fcc5so3649438b3a.0 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=vJMqXWZAxQcMZ2aKmO97Ew/wcHNdEwzQ/Zt867Ae17018bQu0hS7+xvAaBkjPnbKfM l58G4lR2OWQsQXbomJkP2FTivPcNmYdiVeUfTJRKPZ6z2rZ71L3wA4+fokrdDbPM8FBn U9gFv7CI/PqQSOJ2MRzId7o7bXUQgbKAArS72tIg107TZ+fDFVUYnwfvRLYtuO4+kKvo RjZ2X4o3UL9heazQk78JqIc9FXbXRW7Q+D0xP38UZCYCA0o/gG34ooj+GvEwVRL6s2p3 GFY4PaqBsDrT8o2hw5QJdZQfwB4/xIOdn65VekHBfZN70tl4lPp7oybab3p2lwskmEaR JQfQ== X-Gm-Message-State: AOJu0YwPQIjtlv3VfeicRVzXo8JyAOUwTgPLU8D2mD+lRYxhV+IuDvjd 5cgbiqOq3DOIRIdWnjL65LFRFYyZbibMyVPmwoeobF2kHapRJ3QCDgfQvGPsCXBxQ9lEl33F4cr LoQGEoouBXhzbEktlVte4RA== X-Received: by 2002:a05:6a20:7494:b0:174:373b:4381 with SMTP id p20-20020a056a20749400b00174373b4381mr3583326pzd.49.1699836176463; 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 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 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 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