From 335c5272985ee29b9a8cf776c249774696fef1c1 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 31 Mar 2006 02:31:25 -0800 Subject: [PATCH] --- yaml --- r: 24919 b: refs/heads/master c: e7c38cb49c6cc05bc11f70d9e9889da1c4a0d37f h: refs/heads/master i: 24917: 4e5ab33f2bf669ad85dbda67b5bcef03728daef3 24915: 30a520534db24c7ccb183785fdc157af4775dde7 24911: a65db1d672391eb1ffdf7b8e6dcf56209f9f23c2 v: v3 --- [refs] | 2 +- trunk/kernel/sched.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index b4fa8224b58d..3bb7f0969e14 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3dee386e14045484a6c41c8f03a263f9d79de740 +refs/heads/master: e7c38cb49c6cc05bc11f70d9e9889da1c4a0d37f diff --git a/trunk/kernel/sched.c b/trunk/kernel/sched.c index f55ce5adac55..589e55a42214 100644 --- a/trunk/kernel/sched.c +++ b/trunk/kernel/sched.c @@ -1273,18 +1273,18 @@ static int try_to_wake_up(task_t *p, unsigned int state, int sync) * sleep_avg beyond just interactive state. */ p->sleep_type = SLEEP_NONINTERACTIVE; - } + } else /* * Tasks that have marked their sleep as noninteractive get - * woken up without updating their sleep average. (i.e. their - * sleep is handled in a priority-neutral manner, no priority - * boost and no penalty.) + * woken up with their sleep average not weighted in an + * interactive way. */ - if (old_state & TASK_NONINTERACTIVE) - __activate_task(p, rq); - else - activate_task(p, rq, cpu == this_cpu); + if (old_state & TASK_NONINTERACTIVE) + p->sleep_type = SLEEP_NONINTERACTIVE; + + + activate_task(p, rq, cpu == this_cpu); /* * Sync wakeups (i.e. those types of wakeups where the waker * has indicated that it will leave the CPU in short order)