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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A577C27C40 for ; Wed, 22 Nov 2023 20:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ri1ttZUqepxQuZ0RXM9FowkeGN+i+mMRWiLs/FhGYBY=; b=JiIj71+b4HZbUT /dwk3khwvvz4u86FBmwD1nwWMyiLPaHbcP/RclZrwN2kj0AynpgiAbTvNiRykZWaQBoIMZ9ZBQaEN yds2owV0K4vs5I3VLOsauWefdUXk09FT/sk8XH790CAHRrfMgV9s54rQePxoKMDlaN8mk1OHepG45 J6Pm6SB7H24pId7RuUCOV0Envp4C7Frvn0qZz+CJOEahvtxKEko5E4bjIt/W2bNZ7H/1tRop0fiic UbWKkSYKydM/YyV66LNraYmisVavqTOTQnH0Qb/kcddB7JGzzL/zJTn7kTlb1YZbxk9xAYKnJ1Sfa hhQrvMIJknEcHeUO39Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5tTt-002yjX-0C; Wed, 22 Nov 2023 20:05:53 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5tTp-002yip-2g for linux-arm-kernel@lists.infradead.org; Wed, 22 Nov 2023 20:05:51 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-35beca6d020so625005ab.0 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=lists.infradead.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=cNge0VERWnTZgZKWZtTocu0CLHCVHNnHEySrJ/EV+FO7k429HhXDDxAwXt0GQ/M6eM JEy761N8z7SNKknv2exmrOLpWUQ8EAi31msKQUJfRBoSMCLd4xW2pxbgm9IoxAi3fojJ Kwr1QfxNo5hGLGbeG+WSc4zAQvFAFT5CkwveRQV0y/QbYnrgCIHyLUA7BVe+IlRAp2po cDPh9A/v7C1VCaWpiH9iDe976RxIvNKxwVtsi0UEOotzBZB8weG8z6hFjXeCJE7hJKn0 TVtQOuFmuxPAVNz2PeKrRxq72V81Hawb9ukPTnQbMmxAunAwU+uyaOxzAkdGqDuYQTb9 u++g== 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=FPGZ3QNDZ75yRZLGihP5zJOgfl7rHagsUut2w+qPM4yyTfNaloRf6ajSHHHmubib79 LsvQ5zsp4RWjyQlRNKgg7MBhteOOoM9qRO3BRmX2kpK9hFfGaQIcrD7dL+Zb+1psOLz3 luZ3dWeSncHgzHyKgxzDfug8i1lZivsMKCTfa2naddIOwCkTM02FJcEzMNv/Kzh7mJVt UfpzsQkzaDmqsRooDIP4PC0FOZnLlzUCKWYKVBENEb6ALKzp7QaHryzV/H1Pin/+k2Jf ZzzWrhfMjJqaJ49DUz3mp2V2z9eLtINFgj/UOtmF35t9NDBEX5lVwknseeqybtBO8zVm 5kqA== X-Gm-Message-State: AOJu0YzVsTx8vSsNRmihRT5U/dVsNlRnAXSqHUnkescXOaIVLD/s3RQv eyJPQ5FKZwZ9TMcgCfVqa7WKjA== X-Google-Smtp-Source: AGHT+IHnt1n8lKdOoy/IQ7zxz3tfAa5Q5pJfyX8St73RZdlSFGXq1ufTDSL1DA4xJt2sjOxhqX4opA== 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_120549_892461_C8D7D51B X-CRM114-Status: GOOD ( 15.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel