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="fAmVaU1q" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72630D4A 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=1701402523; 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=fAmVaU1qLwGmSYFnif6OOQLTppkStrvz9HlB+dDY0FVN1DzUGN+rfk46fdUGhOZdsm6aua 9gfLBi9A2KYYXO1BbDLJqa5HDkp3kveq3OY5y0t9TU2FgeFuTSJLEy7G6ApGvCp0bCsnVR OpifonJc6p5VOu46qy/dSkGbMDIIas4= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-656-7d9OPW4IP_6OTljD56PYjQ-1; Thu, 30 Nov 2023 22:48:41 -0500 X-MC-Unique: 7d9OPW4IP_6OTljD56PYjQ-1 Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-1d04d286b5cso1714335ad.0 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=ItkabdGyLlyanX3Uh1so3BOFpz8FIQ4ETN+LttNwu90zhkOmjyCiQDcp5mJcREM4Pz kh5hwHwNOXLb0iCLPHoARkofUtJbMXb5lsK2XyIvzdZEWrVuiAUDPdXNBloJItt8wRGb iWWIK4HKSK9e2mg1xjKXimI1qHhQ/rETnfAZ8+C8QS9tiv5vgZh5s8v+OuwMolO1j8TW D6bShnZ3UPFogf/FALYP0ivmeec7+jocEitykWnQ0AMy0rAPNzSkF+bfJ0pNNTsfV7nN 3jW+aZv5revdQxb/QqaNbRqpuquYyRkl5XiLnOdRndSMFcm8mWl09UIeA/U6EOa3sdkA IG6Q== X-Gm-Message-State: AOJu0YxlXWAgEhW1X135UO0plLq9sFzrbk829TUns5reuWi+QrrSCaYy c+ZBTTpXek2GwI/I4V+P59yb3jry+IFYOguambU2uep94kl34bM3FKzhaCtwGoaB7pU4HyLvrXZ nb7hQd8UU92NOJQ6PtvA= X-Received: by 2002:a17:903:22cc:b0:1d0:1c45:fca6 with SMTP id y12-20020a17090322cc00b001d01c45fca6mr8848391plg.55.1701402521011; 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-pm@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