Messages in this thread Patch in this message | | | From | Frederic Weisbecker <> | Subject | [PATCH 32/33] sched: Update rq clock before rt sched average scale | Date | Tue, 8 Jan 2013 03:08:32 +0100 |
| |
When we restart the tick, we catch up with the CPU loads statistics. But we also scale down the rt power. This require an uptodate rq clock.
DISCLAIMER: I don't know if this is needed when we wake up from idle. May be this is handled from the reader side in scale_rt_power(). I have yet to understand exactly what this function does.
Also scale_rt_power() also need to handle full tickless CPUs when they run RT tasks. And also to remotely handle the missing scaling down usually performed from the tick.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Alessio Igor Bogani <abogani@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Chris Metcalf <cmetcalf@tilera.com> Cc: Christoph Lameter <cl@linux.com> Cc: Geoff Levand <geoff@infradead.org> Cc: Gilad Ben Yossef <gilad@benyossef.com> Cc: Hakan Akkan <hakanakkan@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> --- kernel/sched/core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 8dfc461..b35d122 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2650,6 +2650,7 @@ void update_cpu_load_nohz(void) pending_updates = curr_jiffies - this_rq->last_load_update_tick; if (pending_updates) { this_rq->last_load_update_tick = curr_jiffies; + update_rq_clock(this_rq); /* * We were idle, this means load 0, the current load might be * !0 due to remote wakeups and the sort. -- 1.7.5.4
| |