diff options
author | Baolin Wang <[email protected]> | 2018-07-17 15:55:16 +0800 |
---|---|---|
committer | John Stultz <[email protected]> | 2018-07-19 17:08:52 -0700 |
commit | 39232ed5a1793f67b11430c43ed8a9ed6e96c6eb (patch) | |
tree | dbcd15f6322432bf49f1c0d84fe638ccf7189117 /net/lapb/lapb_subr.c | |
parent | f473e5f467f6049370575390b08dc42131315d60 (diff) |
time: Introduce one suspend clocksource to compensate the suspend time
On some hardware with multiple clocksources, we have coarse grained
clocksources that support the CLOCK_SOURCE_SUSPEND_NONSTOP flag, but
which are less than ideal for timekeeping whereas other clocksources
can be better candidates but halt on suspend.
Currently, the timekeeping core only supports timing suspend using
CLOCK_SOURCE_SUSPEND_NONSTOP clocksources if that clocksource is the
current clocksource for timekeeping.
As a result, some architectures try to implement read_persistent_clock64()
using those non-stop clocksources, but isn't really ideal, which will
introduce more duplicate code. To fix this, provide logic to allow a
registered SUSPEND_NONSTOP clocksource, which isn't the current
clocksource, to be used to calculate the suspend time.
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Miroslav Lichvar <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Reviewed-by: Daniel Lezcano <[email protected]>
Suggested-by: Thomas Gleixner <[email protected]>
Signed-off-by: Baolin Wang <[email protected]>
[jstultz: minor tweaks to merge with previous resume changes]
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions