x86/dtb: Rename x86_dtb_init()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:06 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:40 +0000 (22:07 +0100)
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 <tglx@linutronix.de>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240212154639.495992801@linutronix.de
arch/x86/include/asm/prom.h
arch/x86/kernel/devicetree.c
arch/x86/kernel/setup.c

index 65dee24206240641172ad509e6e06358e6fcf41f..043758a2e627037f544022197d41b8a762e6e973 100644 (file)
@@ -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
 
index afd09924094eca5e444fd1beaf20c7e02f888e85..c05b900845bd10ef7d1ef3427a28ed920e43e2bf 100644 (file)
@@ -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;
index 0e431c98c96d6dbb5de0ec44990aa72f9909d4bf..39edb8971c942738aeebf033eced0eab2368babc 100644 (file)
@@ -1133,7 +1133,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: