diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ad7b93be5691..88215066efae 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2266,6 +2266,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync) | |||
2266 | 2266 | ||
2267 | smp_wmb(); | 2267 | smp_wmb(); |
2268 | rq = task_rq_lock(p, &flags); | 2268 | rq = task_rq_lock(p, &flags); |
2269 | update_rq_clock(rq); | ||
2269 | old_state = p->state; | 2270 | old_state = p->state; |
2270 | if (!(old_state & state)) | 2271 | if (!(old_state & state)) |
2271 | goto out; | 2272 | goto out; |
@@ -2323,7 +2324,6 @@ out_activate: | |||
2323 | schedstat_inc(p, se.nr_wakeups_local); | 2324 | schedstat_inc(p, se.nr_wakeups_local); |
2324 | else | 2325 | else |
2325 | schedstat_inc(p, se.nr_wakeups_remote); | 2326 | schedstat_inc(p, se.nr_wakeups_remote); |
2326 | update_rq_clock(rq); | ||
2327 | activate_task(rq, p, 1); | 2327 | activate_task(rq, p, 1); |
2328 | success = 1; | 2328 | success = 1; |
2329 | 2329 | ||