diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 24eed372d280..6da13bba3e23 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1261,6 +1261,16 @@ out_activate: | |||
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | /* | 1263 | /* |
1264 | * Tasks that have marked their sleep as noninteractive get | ||
1265 | * woken up without updating their sleep average. (i.e. their | ||
1266 | * sleep is handled in a priority-neutral manner, no priority | ||
1267 | * boost and no penalty.) | ||
1268 | */ | ||
1269 | if (old_state & TASK_NONINTERACTIVE) | ||
1270 | __activate_task(p, rq); | ||
1271 | else | ||
1272 | activate_task(p, rq, cpu == this_cpu); | ||
1273 | /* | ||
1264 | * Sync wakeups (i.e. those types of wakeups where the waker | 1274 | * Sync wakeups (i.e. those types of wakeups where the waker |
1265 | * has indicated that it will leave the CPU in short order) | 1275 | * has indicated that it will leave the CPU in short order) |
1266 | * don't trigger a preemption, if the woken up task will run on | 1276 | * don't trigger a preemption, if the woken up task will run on |
@@ -1268,7 +1278,6 @@ out_activate: | |||
1268 | * the waker guarantees that the freshly woken up task is going | 1278 | * the waker guarantees that the freshly woken up task is going |
1269 | * to be considered on this CPU.) | 1279 | * to be considered on this CPU.) |
1270 | */ | 1280 | */ |
1271 | activate_task(p, rq, cpu == this_cpu); | ||
1272 | if (!sync || cpu != this_cpu) { | 1281 | if (!sync || cpu != this_cpu) { |
1273 | if (TASK_PREEMPTS_CURR(p, rq)) | 1282 | if (TASK_PREEMPTS_CURR(p, rq)) |
1274 | resched_task(rq->curr); | 1283 | resched_task(rq->curr); |