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 C2CBBC4167B for ; Mon, 13 Nov 2023 04:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233139AbjKMEYp (ORCPT ); Sun, 12 Nov 2023 23:24:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbjKMEYn (ORCPT ); Sun, 12 Nov 2023 23:24:43 -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 E5B071709 for ; Sun, 12 Nov 2023 20:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699849432; 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=MDzN//cB8A0tsFhYQj2uRkfSHm3F/Ien9J3CTjaN2xA=; b=VG+F68yKrS/JhmJCO4dCDhBlogYFX/SOJfnBjxPhXGnhTqMfoMP9spIGSoRDO1JVZID8IM lS/Lj2Uxnst0xlrihEDtx1sIFUY7sm3CotstcKXTwiLLSi5aHDhq1eZGmP2LrWce7CyoRq gVaHwPV77s+IZkhJc2vvHcSKM98LPYs= 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-453-5k6bQM80NrCodPpMNXktzA-1; Sun, 12 Nov 2023 23:23:50 -0500 X-MC-Unique: 5k6bQM80NrCodPpMNXktzA-1 Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-5bddc607b45so4645382a12.0 for ; Sun, 12 Nov 2023 20:23:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699849429; x=1700454229; 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=MDzN//cB8A0tsFhYQj2uRkfSHm3F/Ien9J3CTjaN2xA=; b=hXixAUrhH3v8wFEpINYlGMuW0jHOzUBALT0SOjC16JGeeUUYfJCdWAmgWBXvzatAMv 24J9NvpTyOkJFQ/GSmPHyhgB5gj3yT3Ro5NlBTmdMXzEGECaCoTShkIX8Lr33Hqqnc5m TNRdfaU6g9I9Q0KioLnYgHAzUXEFjXTakd7IH1n01H/+7LOAiiyEbVmc65qP9cUCt9e9 oU2+wXTHsSRManEAeeCOuIcJu3U17GqVWhuCyamxu7UGrJ4G6kdPLT7aJHIqNO1srPFq QOQcXGchl7JiuQ5Li4GGh+3j+C8nQqJB6zqdpBQ1JPT1TSqabX92/uIx8A9fnLOaufI/ ikLA== X-Gm-Message-State: AOJu0YziaFiYMcW0Hw3gjYGSI69V8JGN6L5ChjWgtcoUKFKFANUDPED4 APmXVXOmHm+jOwrOnhosKjHMWvHzT4vY4KVlW/Geu0+mPfuu5Uvjo9xNdfbuCc4eYybZAttWcj6 5uL3pKId3o5Bb4D7YX3Nto5gU X-Received: by 2002:a05:6a20:7292:b0:177:690a:7978 with SMTP id o18-20020a056a20729200b00177690a7978mr7173308pzk.33.1699849429679; Sun, 12 Nov 2023 20:23:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFskzK66afv7E0dvEEzwtWe0LILd1YSCQ10I8JNRY4PU48BJW4/+U8P1g/k7SE3CEH/9dkMnA== X-Received: by 2002:a05:6a20:7292:b0:177:690a:7978 with SMTP id o18-20020a056a20729200b00177690a7978mr7173300pzk.33.1699849429425; Sun, 12 Nov 2023 20:23:49 -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 fm6-20020a056a002f8600b006c4db182074sm3111661pfb.196.2023.11.12.20.23.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Nov 2023 20:23:48 -0800 (PST) Message-ID: <9dc3a438-930f-4503-af91-12771bdb7738@redhat.com> Date: Mon, 13 Nov 2023 14:23:41 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 21/22] riscv: Switch over to GENERIC_CPU_DEVICES 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 , Paul Walmsley , Palmer Dabbelt , Albert Ou 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:31, Russell King (Oracle) wrote: > From: James Morse > > Now that GENERIC_CPU_DEVICES calls arch_register_cpu(), which can be > overridden by the arch code, switch over to this to allow common code > to choose when the register_cpu() call is made. > > This allows topology_init() to be removed. > > This is an intermediate step to the logic being moved to drivers/acpi, > where GENERIC_CPU_DEVICES will do the work when booting with acpi=off. > > This patch also has the effect of moving the registration of CPUs from > subsys to driver core initialisation, prior to any initcalls running. > > Signed-off-by: James Morse > Reviewed-by: Jonathan Cameron > Signed-off-by: Russell King (Oracle) > --- > Changes since RFC v2: > * Add note about initialisation order change. > --- > arch/riscv/Kconfig | 1 + > arch/riscv/kernel/setup.c | 19 ++++--------------- > 2 files changed, 5 insertions(+), 15 deletions(-) > Reviewed-by: Gavin Shan