From b1068cefce0ccc695df37f46f3321a8c7120c582 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Mon, 10 Oct 2016 18:25:34 +1100 Subject: [PATCH 18/80] Drop task waking which is not meaningfully used. --- kernel/sched/MuQSS.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/MuQSS.c b/kernel/sched/MuQSS.c index 416924b..4b7e54f 100644 --- a/kernel/sched/MuQSS.c +++ b/kernel/sched/MuQSS.c @@ -1854,7 +1854,6 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags) smp_cond_load_acquire(&p->on_cpu, !VAL); p->sched_contributes_to_load = !!task_contributes_to_load(p); - p->state = TASK_WAKING; cpu = select_best_cpu(p); if (task_cpu(p) != cpu) @@ -5722,7 +5721,7 @@ static int __set_cpus_allowed_ptr(struct task_struct *p, if (cpumask_test_cpu(task_cpu(p), new_mask)) goto out; - if (task_running(rq, p) || p->state == TASK_WAKING) { + if (task_running(rq, p)) { /* Task is running on the wrong cpu now, reschedule it. */ if (rq == this_rq()) { set_tsk_need_resched(p); -- 2.7.4