summaryrefslogtreecommitdiff
path: root/kernel/time
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-04-08 20:05:49 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-04-08 20:05:49 +0200
commit71f4dd34419f46435da717c72e93e9b03ff41a3f (patch)
tree6ac2b4f4675c23272d7ff48c8f272dd62acc113f /kernel/time
parent31c6ae47620af0eb5657b5448559a59339794ecc (diff)
parent22141d5f411895bb1b0df2a6b05f702e11e63918 (diff)
Merge back earlier cpuidle updates for v5.13.
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c6
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)
{