Commit f87136c0 authored by Saurabh Sengar's avatar Saurabh Sengar Committed by Ingo Molnar

x86/of: Change x86_dtb_parse_smp_config() to static

x86_dtb_parse_smp_config() is called locally only, change it to static.
Signed-off-by: default avatarSaurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/1712068830-4513-5-git-send-email-ssengar@linux.microsoft.com
parent 85900d06
...@@ -23,12 +23,10 @@ extern int of_ioapic; ...@@ -23,12 +23,10 @@ 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_parse_smp_config(void);
void x86_flattree_get_config(void); void x86_flattree_get_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_parse_smp_config(void) { }
static inline void x86_flattree_get_config(void) { } static inline void x86_flattree_get_config(void) { }
#define of_ioapic 0 #define of_ioapic 0
#endif #endif
......
...@@ -279,6 +279,15 @@ static void __init dtb_apic_setup(void) ...@@ -279,6 +279,15 @@ static void __init dtb_apic_setup(void)
dtb_ioapic_setup(); dtb_ioapic_setup();
} }
static void __init x86_dtb_parse_smp_config(void)
{
if (!of_have_populated_dt())
return;
dtb_setup_hpet();
dtb_apic_setup();
}
void __init x86_flattree_get_config(void) void __init x86_flattree_get_config(void)
{ {
#ifdef CONFIG_OF_EARLY_FLATTREE #ifdef CONFIG_OF_EARLY_FLATTREE
...@@ -307,12 +316,3 @@ void __init x86_flattree_get_config(void) ...@@ -307,12 +316,3 @@ void __init x86_flattree_get_config(void)
if (of_have_populated_dt()) if (of_have_populated_dt())
x86_init.mpparse.parse_smp_cfg = x86_dtb_parse_smp_config; x86_init.mpparse.parse_smp_cfg = x86_dtb_parse_smp_config;
} }
void __init x86_dtb_parse_smp_config(void)
{
if (!of_have_populated_dt())
return;
dtb_setup_hpet();
dtb_apic_setup();
}
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