aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/smp.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-30 21:36:17 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-05 16:27:54 -0500
commit65a4e574d2382d83f71b30ea92f86d2e40a6ef8d (patch)
treed265ad2f64a3ae35ee3a9ad43b8c55b0e87f6c99 /include/linux/smp.h
parentd8106d2e24d54497233ca9cd97fa9bec807de458 (diff)
smp, generic: introduce arch_disable_smp_support() instead of disable_ioapic_setup()
Impact: cleanup disable_ioapic_setup() in init/main.c is ugly as the function is x86-specific. The #ifdef inline prototype there is ugly too. Replace it with a generic arch_disable_smp_support() function - which has a weak alias for non-x86 architectures and for non-ioapic x86 builds. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r--include/linux/smp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 715196b09d67..d41a3a865fe3 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -67,6 +67,12 @@ extern int __cpu_up(unsigned int cpunum);
67extern void smp_cpus_done(unsigned int max_cpus); 67extern void smp_cpus_done(unsigned int max_cpus);
68 68
69/* 69/*
70 * Callback to arch code if there's nosmp or maxcpus=0 on the
71 * boot command line:
72 */
73extern void arch_disable_smp_support(void);
74
75/*
70 * Call a function on all other processors 76 * Call a function on all other processors
71 */ 77 */
72int smp_call_function(void(*func)(void *info), void *info, int wait); 78int smp_call_function(void(*func)(void *info), void *info, int wait);