X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=kernel%2Fsoftlockup.c;h=c67189a25d52efbd2aa6afdf0655cfe860971189;hb=6cb6524d90b6e5497e79a1474bdb2f26755d1c02;hp=75976209cea7dbf44549b2bfca079142accb45a4;hpb=cc896f08717c445235554a7963a7b2ecf58911ad;p=powerpc.git diff --git a/kernel/softlockup.c b/kernel/softlockup.c index 75976209ce..c67189a25d 100644 --- a/kernel/softlockup.c +++ b/kernel/softlockup.c @@ -73,9 +73,6 @@ void softlockup_tick(struct pt_regs *regs) static int watchdog(void * __bind_cpu) { struct sched_param param = { .sched_priority = 99 }; - int this_cpu = (long) __bind_cpu; - - printk("softlockup thread %d started up.\n", this_cpu); sched_setscheduler(current, SCHED_FIFO, ¶m); current->flags |= PF_NOFREEZE; @@ -123,7 +120,8 @@ cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) #ifdef CONFIG_HOTPLUG_CPU case CPU_UP_CANCELED: /* Unbind so it can run. Fall thru. */ - kthread_bind(per_cpu(watchdog_task, hotcpu), smp_processor_id()); + kthread_bind(per_cpu(watchdog_task, hotcpu), + any_online_cpu(cpu_online_map)); case CPU_DEAD: p = per_cpu(watchdog_task, hotcpu); per_cpu(watchdog_task, hotcpu) = NULL;