diff options
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r-- | kernel/time/timekeeping.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 96b3f0dfa5dc..5d4d4239a0aa 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -478,6 +478,17 @@ int timekeeping_valid_for_hres(void) | |||
478 | } | 478 | } |
479 | 479 | ||
480 | /** | 480 | /** |
481 | * timekeeping_max_deferment - Returns max time the clocksource can be deferred | ||
482 | * | ||
483 | * Caller must observe xtime_lock via read_seqbegin/read_seqretry to | ||
484 | * ensure that the clocksource does not change! | ||
485 | */ | ||
486 | u64 timekeeping_max_deferment(void) | ||
487 | { | ||
488 | return timekeeper.clock->max_idle_ns; | ||
489 | } | ||
490 | |||
491 | /** | ||
481 | * read_persistent_clock - Return time from the persistent clock. | 492 | * read_persistent_clock - Return time from the persistent clock. |
482 | * | 493 | * |
483 | * Weak dummy function for arches that do not yet support it. | 494 | * Weak dummy function for arches that do not yet support it. |