Skip to content

Commit 7cb9a94

Browse files
committed
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 <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 3758b0f commit 7cb9a94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kernel/time/posix-cpu-timers.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ static void cleanup_timers_list(struct list_head *head)
412412
}
413413

414414
/*
415-
* Clean out CPU timers still ticking when a thread exited. The task
416-
* pointer is cleared, and the expiry time is replaced with the residual
417-
* time for later timer_gettime calls to return.
415+
* Clean out CPU timers which are still armed when a thread exits. The
416+
* timers are only removed from the list. No other updates are done. The
417+
* corresponding posix timers are still accessible, but cannot be rearmed.
418+
*
418419
* This must be called with the siglock held.
419420
*/
420421
static void cleanup_timers(struct list_head *head)

0 commit comments

Comments
 (0)