diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-07 22:51:47 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-07 22:51:47 -0500 |
commit | 6b995751c2e851d2bc9c277b5884d0adb519e31d (patch) | |
tree | 7a15b41b5d8ce612915584a0773c670d5c0ab5b8 /kernel/sched.c | |
parent | 6c2f4267833f453156f8f439cc32eb4c92f357b4 (diff) | |
parent | d27ba47e7e8c466c18983a1779d611f82d6a354f (diff) |
Merge branch 'master'
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index b4f4eb613537..3ce26954be12 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3563,8 +3563,6 @@ int idle_cpu(int cpu) | |||
3563 | return cpu_curr(cpu) == cpu_rq(cpu)->idle; | 3563 | return cpu_curr(cpu) == cpu_rq(cpu)->idle; |
3564 | } | 3564 | } |
3565 | 3565 | ||
3566 | EXPORT_SYMBOL_GPL(idle_cpu); | ||
3567 | |||
3568 | /** | 3566 | /** |
3569 | * idle_task - return the idle task for a given cpu. | 3567 | * idle_task - return the idle task for a given cpu. |
3570 | * @cpu: the processor in question. | 3568 | * @cpu: the processor in question. |
@@ -4680,7 +4678,8 @@ static int migration_call(struct notifier_block *nfb, unsigned long action, | |||
4680 | #ifdef CONFIG_HOTPLUG_CPU | 4678 | #ifdef CONFIG_HOTPLUG_CPU |
4681 | case CPU_UP_CANCELED: | 4679 | case CPU_UP_CANCELED: |
4682 | /* Unbind it from offline cpu so it can run. Fall thru. */ | 4680 | /* Unbind it from offline cpu so it can run. Fall thru. */ |
4683 | kthread_bind(cpu_rq(cpu)->migration_thread,smp_processor_id()); | 4681 | kthread_bind(cpu_rq(cpu)->migration_thread, |
4682 | any_online_cpu(cpu_online_map)); | ||
4684 | kthread_stop(cpu_rq(cpu)->migration_thread); | 4683 | kthread_stop(cpu_rq(cpu)->migration_thread); |
4685 | cpu_rq(cpu)->migration_thread = NULL; | 4684 | cpu_rq(cpu)->migration_thread = NULL; |
4686 | break; | 4685 | break; |