]> git.baikalelectronics.ru Git - kernel.git/commit
sched_clock: fix NOHZ interaction
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 1 Sep 2008 14:44:23 +0000 (16:44 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 5 Sep 2008 16:14:08 +0000 (18:14 +0200)
commitbb7be27c070bb60ac7c13b8e543b95c54d6263f1
tree26001a24308baceab1ff36eb8ab1ed43fb831a4f
parentc70ed9319a966156927ba45dbc9306fb732e7dc7
sched_clock: fix NOHZ interaction

If HLT stops the TSC, we'll fail to account idle time, thereby inflating the
actual process times. Fix this by re-calibrating the clock against GTOD when
leaving nohz mode.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/tick-sched.c