|
@@ -136,14 +136,14 @@ unsigned int __initdata setup_max_cpus = NR_CPUS;
|
|
|
* greater than 0, limits the maximum number of CPUs activated in
|
|
|
* SMP mode to <NUM>.
|
|
|
*/
|
|
|
-#ifndef CONFIG_X86_IO_APIC
|
|
|
-static inline void disable_ioapic_setup(void) {};
|
|
|
-#endif
|
|
|
+
|
|
|
+void __weak arch_disable_smp_support(void) { }
|
|
|
|
|
|
static int __init nosmp(char *str)
|
|
|
{
|
|
|
setup_max_cpus = 0;
|
|
|
- disable_ioapic_setup();
|
|
|
+ arch_disable_smp_support();
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -153,14 +153,14 @@ static int __init maxcpus(char *str)
|
|
|
{
|
|
|
get_option(&str, &setup_max_cpus);
|
|
|
if (setup_max_cpus == 0)
|
|
|
- disable_ioapic_setup();
|
|
|
+ arch_disable_smp_support();
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
early_param("maxcpus", maxcpus);
|
|
|
#else
|
|
|
-#define setup_max_cpus NR_CPUS
|
|
|
+const unsigned int setup_max_cpus = NR_CPUS;
|
|
|
#endif
|
|
|
|
|
|
/*
|