diff options
author | Amerigo Wang <amwang@redhat.com> | 2011-03-22 19:34:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 20:44:11 -0400 |
commit | 34db18a054c600b6f81787165669dc572fe4de25 (patch) | |
tree | 6a8a0abf4f64ccad677ea2468c3e8465ac4e0c29 /include/linux/smp.h | |
parent | fa9ee9c4b9885dfdf8eccac19b8b4fc8a7c53288 (diff) |
smp: move smp setup functions to kernel/smp.c
Move setup_nr_cpu_ids(), smp_init() and some other SMP boot parameter
setup functions from init/main.c to kenrel/smp.c, saves some #ifdef
CONFIG_SMP.
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Rakib Mullick <rakib.mullick@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r-- | include/linux/smp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 6dc95cac6b3d..48159dd320d0 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
@@ -114,6 +114,8 @@ int on_each_cpu(smp_call_func_t func, void *info, int wait); | |||
114 | void smp_prepare_boot_cpu(void); | 114 | void smp_prepare_boot_cpu(void); |
115 | 115 | ||
116 | extern unsigned int setup_max_cpus; | 116 | extern unsigned int setup_max_cpus; |
117 | extern void __init setup_nr_cpu_ids(void); | ||
118 | extern void __init smp_init(void); | ||
117 | 119 | ||
118 | #else /* !SMP */ | 120 | #else /* !SMP */ |
119 | 121 | ||