diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-04-13 21:02:22 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-04-22 17:06:48 +0200 |
commit | 91e5a2170e795989da9f90c18ba18984f23acc5b (patch) | |
tree | a0aba8e79eeefaf6a05982a97b11904fbbc4105c /kernel | |
parent | 51a03393bac061a4e13fd17214d3ef93a5b296e3 (diff) | |
download | op-kernel-dev-91e5a2170e795989da9f90c18ba18984f23acc5b.zip op-kernel-dev-91e5a2170e795989da9f90c18ba18984f23acc5b.tar.gz |
hrtimer: Document hrtimer_forward[_now]() proper
Document the calling context conditions.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150413210035.178751779@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/hrtimer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 76d4bd9..b1a74ee 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -801,6 +801,14 @@ void unlock_hrtimer_base(const struct hrtimer *timer, unsigned long *flags) * * Forward the timer expiry so it will expire in the future. * Returns the number of overruns. + * + * Can be safely called from the callback function of @timer. If + * called from other contexts @timer must neither be enqueued nor + * running the callback and the caller needs to take care of + * serialization. + * + * Note: This only updates the timer expiry value and does not requeue + * the timer. */ u64 hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval) { |