From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 F24F2F9FB for ; Mon, 13 Nov 2023 04:23:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YHs0eOMH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699849434; 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=YHs0eOMHNHzjOqKpqGmsWWPbbW+E2FYlrCAcaRlOIOwy7ukxl+VwJrXj1GPIKl7/GuYnUd gMLSRjhk+rMLS0qna1iaSou67/v8W9V58XLR07p0iinz7T8Eb1cjqc+6a6H6lnkXUrAqxX HtgUmgfdM1AnEGZ10uOzChORZGLdm1A= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-434-RYUBogWrPCCSSR9dphWQvA-1; Sun, 12 Nov 2023 23:23:50 -0500 X-MC-Unique: RYUBogWrPCCSSR9dphWQvA-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-5b7fb057153so4668175a12.1 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=oV1JGFor7MxlWF2GJ2rNShWheJk8GWMDziu0ptb1YKdmnCPpaowP0aY+kFSxRWXO6m UvARM/xihNtjtUDG5zWlr0KbeR5C0V+cz6l2QFpmtAwwkUN3Qn7aeBF0/9frVTh+WT8V w3r7h9KRyPiVa76/hhsLunCwbTHvFtEKl777RgKoKpqio5aaFDVL8IoHH5bcyjutBC9f MIzZTv24d4eKRWUcJEv534ZSXGvjpddyAQs7I8kLcoYTuHwvq+KmcBFV2S5u+4WQF1uk DPrvKXtCRPzOtijeGFKiDHwu+y10ox1I0w9IDlY1rXNfnD/I3Lf971BEnSIL/UONg36P Ansg== X-Gm-Message-State: AOJu0Yxu2DNUQvNnYAnZwHfBjO9KKq8Dh2XZ/uPKSA7aZouFEc4YbMEH skKuuBcRyfyHNJwqt70W3na4YvX1IgxbB670TJRSJWnLD/4D+Z5L2WXYJAW2IkogKnfSTdv7Nvn xa85MUtf/WS3iOJ4h X-Received: by 2002:a05:6a20:7292:b0:177:690a:7978 with SMTP id o18-20020a056a20729200b00177690a7978mr7173306pzk.33.1699849429676; 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 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 21/22] riscv: Switch over to GENERIC_CPU_DEVICES 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: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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