diff options
| author | Thomas Gleixner <[email protected]> | 2021-07-13 13:39:52 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2021-08-10 15:57:23 +0000 |
| commit | 1b267793f4fd9a089ea8558f3b6698186b9a3214 (patch) | |
| tree | 30427a10c5a74b5c0922367aa74a616a8d5e0238 /lib/test_stackinit.c | |
| parent | timekeeping: Distangle resume and clock-was-set events (diff) | |
| download | kernel-1b267793f4fd9a089ea8558f3b6698186b9a3214.tar.gz kernel-1b267793f4fd9a089ea8558f3b6698186b9a3214.zip | |
time/timekeeping: Avoid invoking clock_was_set() twice
do_adjtimex() might end up scheduling a delayed clock_was_set() via
timekeeping_advance() and then invoke clock_was_set() directly which is
pointless.
Make timekeeping_advance() return whether an invocation of clock_was_set()
is required and handle it at the call sites which allows do_adjtimex() to
issue a single direct call if required.
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
