diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-04-08 20:05:49 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-04-08 20:05:49 +0200 |
commit | 71f4dd34419f46435da717c72e93e9b03ff41a3f (patch) | |
tree | 6ac2b4f4675c23272d7ff48c8f272dd62acc113f /kernel/time | |
parent | 31c6ae47620af0eb5657b5448559a59339794ecc (diff) | |
parent | 22141d5f411895bb1b0df2a6b05f702e11e63918 (diff) |
Merge back earlier cpuidle updates for v5.13.
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/tick-sched.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index e10a4af88737..ee0032b95a7c 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1124,7 +1124,11 @@ ktime_t tick_nohz_get_next_hrtimer(void) * tick_nohz_get_sleep_length - return the expected length of the current sleep * @delta_next: duration until the next event if the tick cannot be stopped * - * Called from power state control code with interrupts disabled + * Called from power state control code with interrupts disabled. + * + * The return value of this function and/or the value returned by it through the + * @delta_next pointer can be negative which must be taken into account by its + * callers. */ ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next) { |