From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TcK/XESX" 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 0DE971719 for ; Thu, 30 Nov 2023 19:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701402524; 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=/3AzxV0WgKZTUkZI9KNfIOtjrPxu2v3xdf2PUplwrRY=; b=TcK/XESXhhOquP3eYNuQUFKLL+NH7lmOyq64K8l/sd1cRZcYCgxyEj3OfKMIk+zJBOkdds EuIt8vu+P/A+LKZ1FmWmw5ANsU1QhBy+atTt7XcQvM/PSmVlX3EQ2fBHsOzGzWoHLWFA1O NU9s6EQqvYOpx2GE7jFEQIprHdQUx9w= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-471-AP2aKEK2PVukTP02aQu4aw-1; Thu, 30 Nov 2023 22:48:42 -0500 X-MC-Unique: AP2aKEK2PVukTP02aQu4aw-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1d04ce0214dso1635095ad.1 for ; Thu, 30 Nov 2023 19:48:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701402521; x=1702007321; 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=/3AzxV0WgKZTUkZI9KNfIOtjrPxu2v3xdf2PUplwrRY=; b=HJe1EFE6swgpcsHBEdBdU8asMO5Gv+XH308OmT8Pxm16FffymhEyIEh+yst1tmNszI YwRle1dqVGVtauuwcLlmwc09Hgk33SNvgPwnIOyNao74jY3y3qc8LmMDP+21/ct16kIn leF7wWeKFeXQGhIy60Iy2M7Oz44i23RrD0o5KUE8uQLo2eKNQW/ZPKvD+ErKeFojWT6D 00J5c3SnpDQUEQohPz8qeQzZmTNOvqZDvfHUKosJFtbeYOdPI9QYQm66xdGvqb27OVzm qybl6pIdd7tgrFXqiXUk9RtNd/Ex+dU7Z9K1aXb0A9IYhC0owBIbJrojzjSK4MkMRitd wMew== X-Gm-Message-State: AOJu0Yy0huiM7TdVv9NoAsRTLtkFzkeQXfxSlR5VnepdWfzGSoNaHNZj lLR7KDyf4R27GhiXsid8ytB92SxbC1Gx1rffNBCgzM4joQn9nQIOmIOQ2rA1TJshSz+G0NiddKe 712AsndZ8ID9FWKZhiQu9uQ== X-Received: by 2002:a17:903:22cc:b0:1d0:1c45:fca6 with SMTP id y12-20020a17090322cc00b001d01c45fca6mr8848387plg.55.1701402521010; Thu, 30 Nov 2023 19:48:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPJHgKJ9VKrBg6ysMgalrHEAISDmXhJQ0ZqsSvXKSLoKD01csDbzaLvkOj/ql3EV9F3wt2Rw== X-Received: by 2002:a17:903:22cc:b0:1d0:1c45:fca6 with SMTP id y12-20020a17090322cc00b001d01c45fca6mr8848375plg.55.1701402520729; Thu, 30 Nov 2023 19:48:40 -0800 (PST) Received: from [192.168.68.51] ([43.252.115.3]) by smtp.gmail.com with ESMTPSA id p5-20020a170902e74500b001cfc1a593f7sm2185691plf.217.2023.11.30.19.48.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Nov 2023 19:48:40 -0800 (PST) Message-ID: <86e58855-c5c9-42d0-b983-bf36a8b9b2b0@redhat.com> Date: Fri, 1 Dec 2023 14:48:33 +1100 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 10/21] drivers: base: Move cpu_dev_init() after node_dev_init() 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" References: From: Gavin Shan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/22/23 00:44, Russell King (Oracle) wrote: > From: James Morse > > NUMA systems require the node descriptions to be ready before CPUs are > registered. This is so that the node symlinks can be created in sysfs. > > Currently no NUMA platform uses GENERIC_CPU_DEVICES, meaning that CPUs > are registered by arch code, instead of cpu_dev_init(). > > Move cpu_dev_init() after node_dev_init() so that NUMA architectures > can use GENERIC_CPU_DEVICES. > > Signed-off-by: James Morse > Signed-off-by: Russell King (Oracle) > --- > Note: Jonathan's comment still needs addressing - see > https://lore.kernel.org/r/20230914121612.00006ac7@Huawei.com > --- > drivers/base/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Gavin Shan