sched: Update rq clock before rt sched average scale

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 <>
Cc: Alessio Igor Bogani <>
Cc: Andrew Morton <>
Cc: Chris Metcalf <>
Cc: Christoph Lameter <>
Cc: Geoff Levand <>
Cc: Gilad Ben Yossef <>
Cc: Hakan Akkan <>
Cc: Ingo Molnar <>
Cc: Li Zhong <>
Cc: Namhyung Kim <>
Cc: Paul E. McKenney <>
Cc: Paul Gortmaker <>
Cc: Peter Zijlstra <>
Cc: Steven Rostedt <>
Cc: Thomas Gleixner <>
1 file changed