diff options
author | Alex Shi <alex.shi@intel.com> | 2013-06-20 10:18:49 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-27 10:07:33 +0200 |
commit | 83dfd5235ebd66c284b97befe6eabff7132333e6 (patch) | |
tree | 9c2b9136a715313397029ba0f5050b50d0a78236 | |
parent | 282cf499f03ec1754b6c8c945c9674b02631fb0f (diff) | |
download | linux-83dfd5235ebd66c284b97befe6eabff7132333e6.tar.bz2 |
sched: Update cpu load after task_tick
To get the latest runnable info, we need do this cpuload update after
task_tick.
Signed-off-by: Alex Shi <alex.shi@intel.com>
Reviewed-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1371694737-29336-6-git-send-email-alex.shi@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 729e7fc7634b..08746cc12370 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2165,8 +2165,8 @@ void scheduler_tick(void) raw_spin_lock(&rq->lock); update_rq_clock(rq); - update_cpu_load_active(rq); curr->sched_class->task_tick(rq, curr, 0); + update_cpu_load_active(rq); raw_spin_unlock(&rq->lock); perf_event_task_tick(); |