diff options
Diffstat (limited to 'kernel/time/tick-sched.c')
-rw-r--r-- | kernel/time/tick-sched.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index bdf00c763ee3..f4ee1a3428ae 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -1038,6 +1038,18 @@ bool tick_nohz_idle_got_tick(void) | |||
1038 | } | 1038 | } |
1039 | 1039 | ||
1040 | /** | 1040 | /** |
1041 | * tick_nohz_get_next_hrtimer - return the next expiration time for the hrtimer | ||
1042 | * or the tick, whatever that expires first. Note that, if the tick has been | ||
1043 | * stopped, it returns the next hrtimer. | ||
1044 | * | ||
1045 | * Called from power state control code with interrupts disabled | ||
1046 | */ | ||
1047 | ktime_t tick_nohz_get_next_hrtimer(void) | ||
1048 | { | ||
1049 | return __this_cpu_read(tick_cpu_device.evtdev)->next_event; | ||
1050 | } | ||
1051 | |||
1052 | /** | ||
1041 | * tick_nohz_get_sleep_length - return the expected length of the current sleep | 1053 | * tick_nohz_get_sleep_length - return the expected length of the current sleep |
1042 | * @delta_next: duration until the next event if the tick cannot be stopped | 1054 | * @delta_next: duration until the next event if the tick cannot be stopped |
1043 | * | 1055 | * |