diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-13 04:04:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-04-13 04:19:30 -0400 |
commit | 590ee7dbd569a012df705a5204fc5f1066f52b8c (patch) | |
tree | b941e85828e6f7135c1343abb81239c86f194d6b /include/linux/cpu.h | |
parent | 00df35f991914db6b8bde8cf09808e19a9cffc3d (diff) |
cpu: Provide smpboot_thread_init() on !CONFIG_SMP kernels as well
Now that we are using smpboot_thread_init() in init/main.c as well,
provide it for !CONFIG_SMP as well.
This addresses a !CONFIG_SMP build failure.
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r-- | include/linux/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 091badf0f6ba..c0fb6b1b4712 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
@@ -214,6 +214,10 @@ static inline void cpu_notifier_register_done(void) | |||
214 | { | 214 | { |
215 | } | 215 | } |
216 | 216 | ||
217 | static inline void smpboot_thread_init(void) | ||
218 | { | ||
219 | } | ||
220 | |||
217 | #endif /* CONFIG_SMP */ | 221 | #endif /* CONFIG_SMP */ |
218 | extern struct bus_type cpu_subsys; | 222 | extern struct bus_type cpu_subsys; |
219 | 223 | ||