diff options
author | John Stultz <[email protected]> | 2013-12-11 20:07:49 -0800 |
---|---|---|
committer | John Stultz <[email protected]> | 2013-12-23 11:53:26 -0800 |
commit | 5258d3f25c76f6ab86e9333abf97a55a877d3870 (patch) | |
tree | 1be39352f8537f178ca2eeb2d2802c05edb2be63 /tools/perf/util/trace-event-scripting.c | |
parent | f55c07607a38f84b5c7e6066ee1cfe433fa5643c (diff) |
timekeeping: Fix potential lost pv notification of time change
In 780427f0e11 (Indicate that clock was set in the pvclock
gtod notifier), logic was added to pass a CLOCK_WAS_SET
notification to the pvclock notifier chain.
While that patch added a action flag returned from
accumulate_nsecs_to_secs(), it only uses the returned value
in one location, and not in the logarithmic accumulation.
This means if a leap second triggered during the logarithmic
accumulation (which is most likely where it would happen),
the notification that the clock was set would not make it to
the pv notifiers.
This patch extends the logarithmic_accumulation pass down
that action flag so proper notification will occur.
This patch also changes the varialbe action -> clock_set
per Ingo's suggestion.
Cc: Sasha Levin <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: <[email protected]>
Cc: stable <[email protected]> #3.11+
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions