diff options
| author | John Stultz <[email protected]> | 2012-07-13 05:21:56 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2012-07-15 08:39:07 +0000 |
| commit | 2a8c0883c3cfffcc148ea606e2a4e7453cd75e73 (patch) | |
| tree | 9a340aaef6785881ec0eab74c32ad35841441889 /tools/perf/util/trace-event-scripting.c | |
| parent | time: Move arch_gettimeoffset() usage into timekeeping_get_ns() (diff) | |
| download | kernel-2a8c0883c3cfffcc148ea606e2a4e7453cd75e73.tar.gz kernel-2a8c0883c3cfffcc148ea606e2a4e7453cd75e73.zip | |
time: Move xtime_nsec adjustment underflow handling timekeeping_adjust
When we make adjustments speeding up the clock, its possible
for xtime_nsec to underflow. We already handle this properly,
but we do so from update_wall_time() instead of the more logical
timekeeping_adjust(), where the possible underflow actually
occurs.
Thus, move the correction logic to the timekeeping_adjust, which
is the function that causes the issue. Making update_wall_time()
more readable.
Signed-off-by: John Stultz <[email protected]>
Reviewed-by: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
