]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/smp.c
smp, idle: Allocate idle thread for each possible cpu during boot
[karo-tx-linux.git] / kernel / smp.c
index 2f8b10ecf75996c1bf40feb78bf2a0c1d5471489..a61294c07f3f005aa041721b9f2b83e3026a81bf 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/smp.h>
 #include <linux/cpu.h>
 
+#include "smpboot.h"
+
 #ifdef CONFIG_USE_GENERIC_SMP_HELPERS
 static struct {
        struct list_head        queue;
@@ -669,6 +671,8 @@ void __init smp_init(void)
 {
        unsigned int cpu;
 
+       idle_threads_init();
+
        /* FIXME: This should be done in userspace --RR */
        for_each_present_cpu(cpu) {
                if (num_online_cpus() >= setup_max_cpus)