aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-08-19 16:31:45 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-08-20 22:09:53 +0200
commit7cb9a94c158b956f46cf093ed966d0c1e996dddb (patch)
tree6795d5b6b98535ad868d2ae400d45d4187dfa632
parentalarmtimers: Avoid rtc.h include (diff)
downloadlinux-dev-7cb9a94c158b956f46cf093ed966d0c1e996dddb.tar.xz
linux-dev-7cb9a94c158b956f46cf093ed966d0c1e996dddb.zip
posix-cpu-timers: Fixup stale comment
The comment above cleanup_timers() is outdated. The timers are only removed from the task/process list heads but not modified in any other way. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lkml.kernel.org/r/20190819143801.747233612@linutronix.de
-rw-r--r--kernel/time/posix-cpu-timers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c
index 0a426f4e3125..742d4a4e6f71 100644
--- a/kernel/time/posix-cpu-timers.c
+++ b/kernel/time/posix-cpu-timers.c
@@ -412,9 +412,10 @@ static void cleanup_timers_list(struct list_head *head)
}
/*
- * Clean out CPU timers still ticking when a thread exited. The task
- * pointer is cleared, and the expiry time is replaced with the residual
- * time for later timer_gettime calls to return.
+ * Clean out CPU timers which are still armed when a thread exits. The
+ * timers are only removed from the list. No other updates are done. The
+ * corresponding posix timers are still accessible, but cannot be rearmed.
+ *
* This must be called with the siglock held.
*/
static void cleanup_timers(struct list_head *head)