X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=init%2Fmain.c;h=2769dc031c6222d077206619f755727f7433d3dd;hb=8d31cfcecf67563d70cd68616cb8fb4384f24b51;hp=756eca4b821a8e4406f35de7bddc0588605fd899;hpb=f076ab8d048f152b968bb1c6313fed88abb037fe;p=linux-2.6 diff --git a/init/main.c b/init/main.c index 756eca4b82..2769dc031c 100644 --- a/init/main.c +++ b/init/main.c @@ -415,6 +415,13 @@ static void __init smp_init(void) { unsigned int cpu; + /* + * Set up the current CPU as possible to migrate to. + * The other ones will be done by cpu_up/cpu_down() + */ + cpu = smp_processor_id(); + cpu_set(cpu, cpu_active_map); + /* FIXME: This should be done in userspace --RR */ for_each_present_cpu(cpu) { if (num_online_cpus() >= setup_max_cpus)