summaryrefslogtreecommitdiff
path: root/kernel/smpboot.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2012-07-12 08:55:54 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2012-08-13 15:01:07 (GMT)
commit3180d89b47701072cf129f800a735baf3acdbb8a (patch)
tree345dea7130831f61095e6a55db6723a11f7f433c /kernel/smpboot.c
parentf97f8f06a49febbc3cb3635172efbe64ddc79700 (diff)
downloadlinux-fsl-qoriq-3180d89b47701072cf129f800a735baf3acdbb8a.tar.xz
hotplug: Fix UP bug in smpboot hotplug code
Because kernel subsystems need their per-CPU kthreads on UP systems as well as on SMP systems, the smpboot hotplug kthread functions must be provided in UP builds as well as in SMP builds. This commit therefore adds smpboot.c to UP builds and excludes irrelevant code via #ifdef. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/smpboot.c')
-rw-r--r--kernel/smpboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/smpboot.c b/kernel/smpboot.c
index 9d5f7b0..d6c5fc0 100644
--- a/kernel/smpboot.c
+++ b/kernel/smpboot.c
@@ -15,6 +15,8 @@
#include "smpboot.h"
+#ifdef CONFIG_SMP
+
#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
/*
* For the hotplug case we keep the task structs around and reuse
@@ -72,6 +74,8 @@ void __init idle_threads_init(void)
}
#endif
+#endif /* #ifdef CONFIG_SMP */
+
static LIST_HEAD(hotplug_threads);
static DEFINE_MUTEX(smpboot_threads_lock);