Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp176361rdh; Tue, 13 Feb 2024 13:11:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOPuXU+N6Y/bWtgyNX19StQkff4QaaeLG9qp8Fg2cYJBPiJBohIyjwwanuq18wLvhHvpPnithwQSwa1pSdDAlj9uaRSrDz79W/t2xk1w== X-Google-Smtp-Source: AGHT+IFDnYY/qbA5TGmobbgoRQ+LWUHOHDYYtC2VNNIZNoF4bOflHmmDhzhbr3aOQH/PJZ3qd6pG X-Received: by 2002:a17:90b:808:b0:296:18cb:b717 with SMTP id bk8-20020a17090b080800b0029618cbb717mr652451pjb.25.1707858718304; Tue, 13 Feb 2024 13:11:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858718; cv=pass; d=google.com; s=arc-20160816; b=bX73K+9a2AyDwoMOGfFUZYxj08JdHWTibHmvZ3NBpQjRwGcSHer1VV43KBCXUvGrzQ uJnIZD2hlTzrstDDclKOIhJ+aXtzGLE3ErI+jwvgzSzK4tqAgVJF6KfOdCtrSqGzFu+A Ifj/IM2QFg19ZhNbWHdIfaj1oT6XSeAih7mS907olYq11uYLTo7aFqlfLsJNEO4EaOfa Sb9a/Av0GpOxrYoy1OkaAt7mb98OvyduwQ4A8Fmnngqw7q2OyfoJ9EtxlhfyTauWYBdM 2RirRsRbLjAaFSlWhYFgzbEUJTFzWPGMLezdCHe2fpfKrgk5SU+NFP1vvY0foKiCjtWy xy8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=WKnV8cmjnyf4puxHx+D7XpKpE60kVjCp3v5e0THf4uQ=; fh=D5uJRlE6rYmFGUr5KGN8eyXY8tFKAHC9ASFSegZBGvA=; b=xJABS9CA8cBDgLJvdPwbmokXgV0tNrTUHe80s9HxdE3ndzoQFBCmY1Ch9yZX6dKzND 5FOMlK710Wqc0HDOAXzU714hiWgKZxYt5gIefWHGOW/J7pq2WdGlUG8hJ9FGiiALt125 sJCKk86GmDYWEvkl3UFdMmNtY3rVAj0glwltEX7KpCdZTq6X94H6vjY3KXtd8BxXJFmV rTCINupCH1MZ4hDuc/IsFuz579ODy3zy6TJxRg+MB9+vQmJjZGQ7kHpGFwoL9fsRPCSj qpszllnkT1OZrSAybqT98Lpf1rc0nj31VYv6ausZziB09HlQTXN4qN6iN4pZXuleiOZ/ ppPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iLHrOvBh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64272-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCVt1KTfJ8NVnPQS6EnNPrTwGjuPOQNBX9PuwWfRYu25KlrlTQv7qRU9b2Jm/1T7RVG9Q8odpVfD4GRt6fVbrAiwAX3wc8wELBr7O8LBtA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id sv13-20020a17090b538d00b002948d6a7fc6si2643483pjb.41.2024.02.13.13.11.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:11:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64272-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iLHrOvBh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64272-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A81B286502 for ; Tue, 13 Feb 2024 21:11:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FD786E2C1; Tue, 13 Feb 2024 21:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iLHrOvBh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NuecDBnh" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 3036869DF6 for ; Tue, 13 Feb 2024 21:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858309; cv=none; b=bFmg4xZj7q1kQRrGYAfKbNpgJYRfyzGc6z1vyJ+j5Q/8z18S2Je5w0nPkxmb1fb+ptdBCtp+6hnNDerwerduABCZpgBDO1JUW14ekHHHWvEAOgSdfVje8PO/PX+Dsx/rHhQor5p9XwZlBGmlasK5UbFl5oW3HjrHtbH/zq7HubI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858309; c=relaxed/simple; bh=/py/Xwe4fVOjWrl4DdrzzF4uh9lZ5bJilDGGPUdzVcE=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=rWswpz+Ulen6SmEFHxuJ1pndNHqCdL4ex8DTLj+6QhNfybETxcOq+vSsbWNkYt5tFsyCsTXyZMV7cmZ0ZOhCNaiAS8rD8hBf5iYYFMcpprYCIy0nISmop8TRyKbUgITQX6BI7bldvvUP+irXsVVplc6I7scbdCk45cm2edPSkeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iLHrOvBh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NuecDBnh; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Message-ID: <20240212154639.495992801@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858306; 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: references:references; bh=WKnV8cmjnyf4puxHx+D7XpKpE60kVjCp3v5e0THf4uQ=; b=iLHrOvBhUiVQ+lAlywu1m0FNEbSHk9En+wXJu3GH8iICNq8mVmYmI6QITL5uXwGSnhTH4q LDg2C3mBlce6TI57o42y563bZiYt0oa9/1PSQgNRi6GItM8tiEWmZfAZb/ELr1Y32mffez TgqiAplPymAa3cgXb3uLu6ReZ06mjlvG0VAp3wmzIKU1jB09Dbn3FgMakR8N9oox/q6ECh zqIRB+wjh28yA2Z6ccE1E8TC1/iOvzjpPNM+5QdLSD6nwdhNdsNh0npSg/O7hyz5YEhbNv mudmSCXofygbH/vCSug8j0e0dZ2gtOjxvMs5h/18jji6H2aTs52h5qYtclFRiA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858306; 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: references:references; bh=WKnV8cmjnyf4puxHx+D7XpKpE60kVjCp3v5e0THf4uQ=; b=NuecDBnhFy9QlNmopDT55NyFKeD2nW5Bg1stDtJce9OjL3VpgOk2RLCJdy2p9ng+WMKtlx GmuBK4xR0HYq1WDA== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko , Michael Kelley , "Peter Zijlstra (Intel)" , Andy Shevchenko , Wei Liu Subject: [patch V3 11/22] x86/dtb: Rename x86_dtb_init() References: <20240212154529.402604963@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 13 Feb 2024 22:05:06 +0100 (CET) From: Thomas Gleixner x86_dtb_init() is a misnomer and it really should be used as a SMP configuration parser which is selected by the platform via x86_init::mpparse:parse_smp_config(). Rename it to x86_dtb_parse_smp_config() in preparation for that. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/prom.h | 4 ++-- arch/x86/kernel/devicetree.c | 2 +- arch/x86/kernel/setup.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) --- --- a/arch/x86/include/asm/prom.h +++ b/arch/x86/include/asm/prom.h @@ -23,11 +23,11 @@ extern int of_ioapic; extern u64 initial_dtb; extern void add_dtb(u64 data); void x86_of_pci_init(void); -void x86_dtb_init(void); +void x86_dtb_parse_smp_config(void); #else static inline void add_dtb(u64 data) { } static inline void x86_of_pci_init(void) { } -static inline void x86_dtb_init(void) { } +static inline void x86_dtb_parse_smp_config(void) { } #define of_ioapic 0 #endif --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -302,7 +302,7 @@ void __init x86_flattree_get_config(void } #endif -void __init x86_dtb_init(void) +void __init x86_dtb_parse_smp_config(void) { if (!of_have_populated_dt()) return; --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1131,7 +1131,7 @@ void __init setup_arch(char **cmdline_p) * Read APIC and some other early information from ACPI tables. */ acpi_boot_init(); - x86_dtb_init(); + x86_dtb_parse_smp_config(); /* * get boot-time SMP configuration: