Commit 5faf8ec7 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/dtb: Rename x86_dtb_init()

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: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarMichael Kelley <mhklinux@outlook.com>
Tested-by: default avatarSohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240212154639.495992801@linutronix.de

parent d0a85126
...@@ -23,11 +23,11 @@ extern int of_ioapic; ...@@ -23,11 +23,11 @@ extern int of_ioapic;
extern u64 initial_dtb; extern u64 initial_dtb;
extern void add_dtb(u64 data); extern void add_dtb(u64 data);
void x86_of_pci_init(void); void x86_of_pci_init(void);
void x86_dtb_init(void); void x86_dtb_parse_smp_config(void);
#else #else
static inline void add_dtb(u64 data) { } static inline void add_dtb(u64 data) { }
static inline void x86_of_pci_init(void) { } 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 #define of_ioapic 0
#endif #endif
......
...@@ -302,7 +302,7 @@ void __init x86_flattree_get_config(void) ...@@ -302,7 +302,7 @@ void __init x86_flattree_get_config(void)
} }
#endif #endif
void __init x86_dtb_init(void) void __init x86_dtb_parse_smp_config(void)
{ {
if (!of_have_populated_dt()) if (!of_have_populated_dt())
return; return;
......
...@@ -1133,7 +1133,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -1133,7 +1133,7 @@ void __init setup_arch(char **cmdline_p)
* Read APIC and some other early information from ACPI tables. * Read APIC and some other early information from ACPI tables.
*/ */
acpi_boot_init(); acpi_boot_init();
x86_dtb_init(); x86_dtb_parse_smp_config();
/* /*
* get boot-time SMP configuration: * get boot-time SMP configuration:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment