summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-04-13 10:04:59 +0200
committerLuis Henriques <luis.henriques@canonical.com>2016-04-11 09:53:06 +0100
commit046423723e979dd3e1ad1f88519f77890410990f (patch)
tree256f8c25f916d5df50d542fff03348fe67af66a1 /include
parent3ffac7f4aaf5d20791fd2d9b7a31f44dc97414dc (diff)
downloadlwn-046423723e979dd3e1ad1f88519f77890410990f.tar.gz
lwn-046423723e979dd3e1ad1f88519f77890410990f.zip
cpu: Provide smpboot_thread_init() on !CONFIG_SMP kernels as well
commit 590ee7dbd569a012df705a5204fc5f1066f52b8c upstream. 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> Cc: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index cd895a5e4d59..285111f95464 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -206,6 +206,10 @@ static inline void cpu_notifier_register_done(void)
{
}
+static inline void smpboot_thread_init(void)
+{
+}
+
#endif /* CONFIG_SMP */
extern struct bus_type cpu_subsys;