Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3368970rdb; Wed, 13 Sep 2023 09:54:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEL+1q2fwoiRB9ekd359nEWbI8oFwpcuvi2jl51Kpv8pvxFTGxFcFV/5wbPSdyRHjR7cKU6 X-Received: by 2002:a17:902:d505:b0:1b8:525a:f685 with SMTP id b5-20020a170902d50500b001b8525af685mr3409487plg.37.1694624040570; Wed, 13 Sep 2023 09:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694624040; cv=none; d=google.com; s=arc-20160816; b=IB/jvFEHm+1jwTU0p6t6i5YhDDiHL3MZfxMfZjq3o1pNejSf1JULQFwPzBUnqBpRbb 2jNT6HBmx+dqj6gNWT9OTidQlRQStxyl3BdQv9wQiGBpj5pP/Al4GepWKqKv2iUbjHL6 P1SYY/hpVmFNoAj2SszVSlwTbMhKQ4+VEzy3RbX50sikk7ywFwonwiiE1s8VkYcL4kGf YBCf44JWDEtgpesYkuC7XuKh82q9P196SNTEfP5GWhLbx0YsiTJ0qMw0sudU6vXaZfnI 2MatgPiOyawEBTiY9SIaN1wDef1FJ7yIGowRbckI83IGg0ffT/XKDncR77PY9uSshPug F+jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=izyCxWPP5MIzPKSLH8pfshm9d5tChtDCeBhcYhIaLRg=; fh=2nhVWB0fZ+8YH0lLFpnF/Mo8eq+n1VMLe+b+IpvS0g0=; b=GA/WlCCGgQqhCoYs9F/T1j4EflFA+gVWSkzTvwSQlY2+1e9c4gawLUYIS45jBNBz1D 3moa/s+Id57xdQrFGjGZGBRX57BHkSrx0Upf9uW4k44EUzmXEPgehAO8XKTv1YPKVsZ1 hfvSj/ZQZ9apWSv+Sjs+AmsvIsBenEeIFFMRAfD+VNDzL7pdQs9mwj4ono/IOQ85C2Tu FSFCa1DVIGZ7mdp9EldSJpEy6dn0OKBgn1ITy8zjVpuemeeiFGChuV8E617gGLR5kwKs SVNZXRxgRIVX550KtCVFcb+a+1J9zZL84DztFmJpmsWifZPKeG3s7z4NV2siYrzgMvc4 sz+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g1-20020a170902fe0100b001bbd5fa7d66si10175267plj.164.2023.09.13.09.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 89CC380697F7; Wed, 13 Sep 2023 09:39:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbjIMQjM (ORCPT + 99 others); Wed, 13 Sep 2023 12:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbjIMQjF (ORCPT ); Wed, 13 Sep 2023 12:39:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4487C19BB; Wed, 13 Sep 2023 09:39:01 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 43C2F1007; Wed, 13 Sep 2023 09:39:38 -0700 (PDT) Received: from merodach.members.linode.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 493C83F5A1; Wed, 13 Sep 2023 09:38:59 -0700 (PDT) From: James Morse To: 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 Cc: x86@kernel.org, Salil Mehta , Russell King , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com Subject: [RFC PATCH v2 04/35] drivers: base: Move cpu_dev_init() after node_dev_init() Date: Wed, 13 Sep 2023 16:37:52 +0000 Message-Id: <20230913163823.7880-5-james.morse@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913163823.7880-1-james.morse@arm.com> References: <20230913163823.7880-1-james.morse@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 09:39:17 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 --- drivers/base/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/init.c b/drivers/base/init.c index 397eb9880cec..c4954835128c 100644 --- a/drivers/base/init.c +++ b/drivers/base/init.c @@ -35,8 +35,8 @@ void __init driver_init(void) of_core_init(); platform_bus_init(); auxiliary_bus_init(); - cpu_dev_init(); memory_dev_init(); node_dev_init(); + cpu_dev_init(); container_dev_init(); } -- 2.39.2