diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index c747bc9f3c24..c4889abc00b6 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -5457,14 +5457,14 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
5457 | kthread_stop(rq->migration_thread); | 5457 | kthread_stop(rq->migration_thread); |
5458 | rq->migration_thread = NULL; | 5458 | rq->migration_thread = NULL; |
5459 | /* Idle task back to normal (off runqueue, low prio) */ | 5459 | /* Idle task back to normal (off runqueue, low prio) */ |
5460 | rq = task_rq_lock(rq->idle, &flags); | 5460 | spin_lock_irq(&rq->lock); |
5461 | update_rq_clock(rq); | 5461 | update_rq_clock(rq); |
5462 | deactivate_task(rq, rq->idle, 0); | 5462 | deactivate_task(rq, rq->idle, 0); |
5463 | rq->idle->static_prio = MAX_PRIO; | 5463 | rq->idle->static_prio = MAX_PRIO; |
5464 | __setscheduler(rq, rq->idle, SCHED_NORMAL, 0); | 5464 | __setscheduler(rq, rq->idle, SCHED_NORMAL, 0); |
5465 | rq->idle->sched_class = &idle_sched_class; | 5465 | rq->idle->sched_class = &idle_sched_class; |
5466 | migrate_dead_tasks(cpu); | 5466 | migrate_dead_tasks(cpu); |
5467 | task_rq_unlock(rq, &flags); | 5467 | spin_unlock_irq(&rq->lock); |
5468 | migrate_nr_uninterruptible(rq); | 5468 | migrate_nr_uninterruptible(rq); |
5469 | BUG_ON(rq->nr_running != 0); | 5469 | BUG_ON(rq->nr_running != 0); |
5470 | 5470 | ||