From nobody Wed Dec 24 23:34:48 2025 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 6569D60263 for ; Tue, 23 Jan 2024 13:10:23 +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=1706015424; cv=none; b=KaXtT8tXcJsGCW3U9TavmnRgiKUNOdx1LpjsHn51AANzVcG6HXxMep9XexNH2LRK8MOJibjuhcOMgwMzR85aV7JQwYQsAORvjUyyi7SQijSbC3sE5XUxWahif2mpxYeGmbM9e0VBYqmxvnebZwyH9YQBjxe1whhZ6KW94BqWZdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706015424; c=relaxed/simple; bh=Ya8HI1qzh/dO/xW+mB/76zGK/TYfwJ2VdxGLTPzQff8=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=b1tQKPvXZ39ESuJnz16R9ircdZjILL+M6ufIIpiD0mVaMfJeDnVFXSGxbCEBeogG48w34o5KwMNj5LVNTfprYK9qgf3sa396UFHXW2sQW0YKpzsNB6743T6eAJecSCHlzIEBen5AXQk2dDrJChfea2nNGZQksfexFpSUHEGy57c= 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=fyIxKfjN; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=F5C3Iop1; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fyIxKfjN"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="F5C3Iop1" Message-ID: <20240117124903.056546175@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706015421; 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=tu6Txn30UVC3+dGEQgQMvX6BOPv731R38E3MTjuWaBY=; b=fyIxKfjNqglhFrmGoknWfSRPU7iMXAfDU9Te8PV5ZUxnEeNMHp2QnxLMqUcFdObedOfu0U TOcWuWNtTIFSsEd3/g5aYe+womevcg1mAo9VCly2/TXZv8bCnTjraff4z9nVnI+BRj9r3S yorWPP+KiMRILOh4/bmomroZEg/fz/WMcyAr+Ap2NTuQfPxtc4Rg5hh+eWw+fHVEUVusIA 39D14C7EDw/mFWfMkeg+mGFrRJGr/ArjbII9atYJTTF65vGPj5y6zqtgA6JcaGLJOcwGcK ksQGaLSyPWKE3qP97EA0FbxFFxsKHm8WtcN5lryy/m7ozAFiAdnJlcnpV5eGrg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706015421; 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=tu6Txn30UVC3+dGEQgQMvX6BOPv731R38E3MTjuWaBY=; b=F5C3Iop1/oQp6DCorH5nmWI+66zNEo0oyrTAggsj111iEOGbQrUENeeLr/REvKQg4lS/Bj HrVOcONlSTvU2bCw== 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 V2 11/22] x86/dtb: Rename x86_dtb_init() References: <20240117124704.044462658@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Tue, 23 Jan 2024 14:10:20 +0100 (CET) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 =20 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -302,7 +302,7 @@ void __init x86_flattree_get_config(void } #endif =20 -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(); =20 /* * get boot-time SMP configuration: