Skip to content

Commit

Permalink
posix-cpu-timers: Fixup stale comment
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Gleixner committed Aug 20, 2019
1 parent 3758b0f commit 7cb9a94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel/time/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7cb9a94

Please sign in to comment.