diff options
author | Peter Zijlstra <[email protected]> | 2015-01-05 11:18:11 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-01-14 13:34:20 +0100 |
commit | 9edfbfed3f544a7830d99b341f0c175995a02950 (patch) | |
tree | 58e117b481cc0fdfd9f4595d3fa73e66c689547a /lib/mpi/mpiutil.c | |
parent | cebde6d681aa45f96111cfcffc1544cf2a0454ff (diff) |
sched/core: Rework rq->clock update skips
The original purpose of rq::skip_clock_update was to avoid 'costly' clock
updates for back to back wakeup-preempt pairs. The big problem with it
has always been that the rq variable is unaware of the context and
causes indiscrimiate clock skips.
Rework the entire thing and create a sense of context by only allowing
schedule() to skip clock updates. (XXX can we measure the cost of the
added store?)
By ensuring only schedule can ever skip an update, we guarantee we're
never more than 1 tick behind on the update.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions