diff options
author | Frederic Weisbecker <[email protected]> | 2013-07-15 16:35:55 +0200 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2013-08-14 17:14:56 +0200 |
commit | af2350bd12096dfd04e1090b90bfecea1f75f84e (patch) | |
tree | 838e36dc6f9ec7f2ae237652e1002597c64df070 /lib/memory-notifier-error-inject.c | |
parent | b854fafa4e06c50a92e00b39d75ee62083d986d6 (diff) |
vtime: Always debug check snapshot source _before_ updating it
The vtime delta update performed by get_vtime_delta() always check
that the source of the snapshot is valid.
Meanhile the snapshot updaters that rely on get_vtime_delta() also
set the new snapshot origin. But some of them do this right before
the call to get_vtime_delta(), making its debug check useless.
This is easily fixable by moving the snapshot origin update after
the call to get_vtime_delta(). The order doesn't matter there.
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Li Zhong <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Kevin Hilman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions