Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp162219rdd; Wed, 22 Nov 2023 12:07:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGp3u6paIFWQ/Z9HSsSEf8tMHqxAGPOCNIaaADrWtEwzhNA8sPG+yyDZ81sg8eWA1OLJLdx X-Received: by 2002:a05:6a20:938c:b0:18b:8b4:2dd9 with SMTP id x12-20020a056a20938c00b0018b08b42dd9mr3676983pzh.35.1700683631029; Wed, 22 Nov 2023 12:07:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700683631; cv=none; d=google.com; s=arc-20160816; b=luQ7tt3v40UObxPaYtaVAkOLnoW1O+9eDGFVA24S76TThkBx0f+N+TYeHouNfD59D4 A25CbX2clPyd39T+8uSgwctP6iI8KJkFPST0HxavegP8pYPC/aYNW9oELD/Q65rsSrA1 VW0QalnZCirvL/IKBm9dKmzZg/FieFEnwRb4MU04u5a8Hz7qf3btZAQ73U65i1yoQPMD vCGJEyrRcYqtyo2rvH6Qcde8Y5jLecFA/NG6fpY8igksqM0w4VkqxZLrTjQBvSIb6ACz diNqbuiVJC/3Nloz7w/cu7WzlLpa3Q17RFk6dD9Q4CXKP2xm8Gqeapor0z6nsXAnQgdi f06w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jrlbMrkwsXYB4FXj2gcBQ1hP13CJwFlH1qETDwr8Bbw=; fh=e1pSG07s+IKKoV4F8RepbzvvuaW3QI73KoYTSSkAuQM=; b=WWxWXyLsfjFSVpuHPEAHZA5TLt5gk7nwP0Krmoem71TKjpzXjr9+mA1rMdz2OUsEUO bhrSG3wduGTK9T4X5tGMJFQbxI6tJ3MbuJheE87wlB90ZdbJQBUspJg5hpxo2V5gLh/u YW9Y87x2ZxCuXuaVJLzOVKxmXrc2lFWKNh9FzNL6hrOVTTRktw6Z/ijMzFa6dWAF9nsl QXUAwkSAQkRo0EswXnxOLKXUL7rM971zUaEm7b7c+ibiuMdi5ts1E+2oGmdBGGeZY8yK rJB2zS2YCfRlYmyneVAiuqfYas+C5SKqYdtVTlTdyrzyMjjfr13H2XP1DgOXwZvFEFEH 7tjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=dxOmw9u5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h23-20020a63df57000000b005c1cc7273besi146354pgj.521.2023.11.22.12.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 12:07:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=dxOmw9u5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 80F178098FFF; Wed, 22 Nov 2023 12:06:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344167AbjKVUFz (ORCPT + 99 others); Wed, 22 Nov 2023 15:05:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232396AbjKVUFx (ORCPT ); Wed, 22 Nov 2023 15:05:53 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95D4C1B9 for ; Wed, 22 Nov 2023 12:05:48 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-359c22c44d6so557245ab.2 for ; Wed, 22 Nov 2023 12:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1700683548; x=1701288348; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jrlbMrkwsXYB4FXj2gcBQ1hP13CJwFlH1qETDwr8Bbw=; b=dxOmw9u5WK8n4MdTYxiJCIz7ke3nBxIrUgzTIYKHqpM7tbFDeJjxJbYS7E3ZbIqnlk u6xKT+l8vP/GrdeEe6sVP+yqxHUy13gU8hcuqVdqaCwWpcSRjB7nNgVgfs8uTwZw0PK5 zRfNsrCJ/DxNO878+WeD2ZdOHHdgMTHEzArDDRnKY6T30Y3XMt/pVooGzYsFHARqgMcS WuhU5zEnxqi7JgGSpLW4aFg6pIAQgdV3IUUQzwM/agAtCz8TQDHZ4I+FS9jkgizif6bR 9ubutd1rt4fKTzjMavoYLL7G9yNcu9tJOLNBTmfxi6S784QoEE5kkn4Y5LZtEGqHEv7C hlGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700683548; x=1701288348; 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=jrlbMrkwsXYB4FXj2gcBQ1hP13CJwFlH1qETDwr8Bbw=; b=M4qQXlp6kT7BpBzdgEsbarsPyp15DJq4njmkqhdCrI9dKnt6UXb97C0UTYu3cJdfZe oHHmPtKUE4Euv6ugB3ACK3Z446Wrqy7/rnHoPngCU9iNNe/qbisoZoyPbO69XwSiQnJp /SdbAuioiZ7YnAX4lrFywQ+a80jFI3kISwDv3alVpnRdYDHpsHvG08dxJxLm+2tMRq/z jzf1dEb8kWsGbM4CxtfPxou3LIdDfnKtpFnixfdm7qsmI5IQTRhbXp9TIlLQemX/mU7N vymb8zKF85rm0EiV37pyFlUjXtsPrm5AacIrYtseGtyUxGUtKYJObA6DPR32NMIph0BU RJIQ== X-Gm-Message-State: AOJu0YxdtFQizjtYHmh5x4ezksLM6/2r5QuO7ir822lvGJZ0ukY9d1+a Hrd1pkoSMo/OvUf29t5t3Op+og== X-Received: by 2002:a05:6e02:11a1:b0:35a:ff35:b471 with SMTP id 1-20020a056e0211a100b0035aff35b471mr2869112ilj.14.1700683547904; Wed, 22 Nov 2023 12:05:47 -0800 (PST) Received: from ?IPV6:2605:a601:adae:4500:3d43:c8e2:1496:e620? ([2605:a601:adae:4500:3d43:c8e2:1496:e620]) by smtp.gmail.com with ESMTPSA id f14-20020a02cace000000b004665ce094c4sm31227jap.161.2023.11.22.12.05.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Nov 2023 12:05:47 -0800 (PST) Message-ID: Date: Wed, 22 Nov 2023 14:05:45 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 20/21] riscv: Switch over to GENERIC_CPU_DEVICES Content-Language: en-US To: "Russell King (Oracle)" Cc: Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse , Paul Walmsley , Palmer Dabbelt , Albert Ou , 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 References: From: Samuel Holland In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 12:06:04 -0800 (PST) On 2023-11-21 7:45 AM, 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 > Acked-by: Palmer Dabbelt > Reviewed-by: Gavin Shan > 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: Samuel Holland Tested-by: Samuel Holland