diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 71eb0622f548..3878f5018007 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3158,10 +3158,6 @@ static void pull_task(struct rq *src_rq, struct task_struct *p, | |||
3158 | deactivate_task(src_rq, p, 0); | 3158 | deactivate_task(src_rq, p, 0); |
3159 | set_task_cpu(p, this_cpu); | 3159 | set_task_cpu(p, this_cpu); |
3160 | activate_task(this_rq, p, 0); | 3160 | activate_task(this_rq, p, 0); |
3161 | /* | ||
3162 | * Note that idle threads have a prio of MAX_PRIO, for this test | ||
3163 | * to be always true for them. | ||
3164 | */ | ||
3165 | check_preempt_curr(this_rq, p, 0); | 3161 | check_preempt_curr(this_rq, p, 0); |
3166 | } | 3162 | } |
3167 | 3163 | ||
@@ -6992,7 +6988,6 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu) | |||
6992 | __sched_fork(idle); | 6988 | __sched_fork(idle); |
6993 | idle->se.exec_start = sched_clock(); | 6989 | idle->se.exec_start = sched_clock(); |
6994 | 6990 | ||
6995 | idle->prio = idle->normal_prio = MAX_PRIO; | ||
6996 | cpumask_copy(&idle->cpus_allowed, cpumask_of(cpu)); | 6991 | cpumask_copy(&idle->cpus_allowed, cpumask_of(cpu)); |
6997 | __set_task_cpu(idle, cpu); | 6992 | __set_task_cpu(idle, cpu); |
6998 | 6993 | ||
@@ -7696,7 +7691,6 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
7696 | spin_lock_irq(&rq->lock); | 7691 | spin_lock_irq(&rq->lock); |
7697 | update_rq_clock(rq); | 7692 | update_rq_clock(rq); |
7698 | deactivate_task(rq, rq->idle, 0); | 7693 | deactivate_task(rq, rq->idle, 0); |
7699 | rq->idle->static_prio = MAX_PRIO; | ||
7700 | __setscheduler(rq, rq->idle, SCHED_NORMAL, 0); | 7694 | __setscheduler(rq, rq->idle, SCHED_NORMAL, 0); |
7701 | rq->idle->sched_class = &idle_sched_class; | 7695 | rq->idle->sched_class = &idle_sched_class; |
7702 | migrate_dead_tasks(cpu); | 7696 | migrate_dead_tasks(cpu); |