diff options
author | Martin Schwidefsky <[email protected]> | 2009-08-14 15:47:20 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2009-08-15 10:55:45 +0200 |
commit | 1be396794897f80bfc8774719ba60309a9e3d374 (patch) | |
tree | f0e11ffe7b7cc2cf58129cf3ea1c543de0da9898 /tools/perf/scripts/python/check-perf-trace.py | |
parent | a0f7d48bfb95a4c5172a2756dbc4b82afc8e9ae4 (diff) |
timekeeping: Move reset of cycle_last for tsc clocksource to tsc
change_clocksource resets the cycle_last value to zero then sets it to
a value read from the clocksource. The reset to zero is required only
for the TSC clocksource to make the read_tsc function work after a
resume. The reason is that the TSC read function uses cycle_last to
detect backwards going TSCs. In the resume case cycle_last contains
the TSC value from the last update before the suspend. On resume the
TSC starts counting from 0 again and would trip over the cycle_last
comparison.
This is subtle and surprising. Move the reset to a resume function in
the tsc code.
Signed-off-by: Martin Schwidefsky <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Acked-by: John Stultz <[email protected]>
Cc: Daniel Walker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions