diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index f55ce5adac55..589e55a42214 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1273,18 +1273,18 @@ out_activate: | |||
1273 | * sleep_avg beyond just interactive state. | 1273 | * sleep_avg beyond just interactive state. |
1274 | */ | 1274 | */ |
1275 | p->sleep_type = SLEEP_NONINTERACTIVE; | 1275 | p->sleep_type = SLEEP_NONINTERACTIVE; |
1276 | } | 1276 | } else |
1277 | 1277 | ||
1278 | /* | 1278 | /* |
1279 | * Tasks that have marked their sleep as noninteractive get | 1279 | * Tasks that have marked their sleep as noninteractive get |
1280 | * woken up without updating their sleep average. (i.e. their | 1280 | * woken up with their sleep average not weighted in an |
1281 | * sleep is handled in a priority-neutral manner, no priority | 1281 | * interactive way. |
1282 | * boost and no penalty.) | ||
1283 | */ | 1282 | */ |
1284 | if (old_state & TASK_NONINTERACTIVE) | 1283 | if (old_state & TASK_NONINTERACTIVE) |
1285 | __activate_task(p, rq); | 1284 | p->sleep_type = SLEEP_NONINTERACTIVE; |
1286 | else | 1285 | |
1287 | activate_task(p, rq, cpu == this_cpu); | 1286 | |
1287 | activate_task(p, rq, cpu == this_cpu); | ||
1288 | /* | 1288 | /* |
1289 | * Sync wakeups (i.e. those types of wakeups where the waker | 1289 | * Sync wakeups (i.e. those types of wakeups where the waker |
1290 | * has indicated that it will leave the CPU in short order) | 1290 | * has indicated that it will leave the CPU in short order) |