Skip to content

Commit 02972d7

Browse files
committed
posix-timers: Clarify posix_timer_rearm() comment
Yet another incomprehensible piece of art. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/20230425183313.724863461@linutronix.de
1 parent c575689 commit 02972d7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

kernel/time/posix-timers.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,9 @@ static void common_hrtimer_rearm(struct k_itimer *timr)
275275
}
276276

277277
/*
278-
* This function is exported for use by the signal deliver code. It is
279-
* called just prior to the info block being released and passes that
280-
* block to us. It's function is to update the overrun entry AND to
281-
* restart the timer. It should only be called if the timer is to be
282-
* restarted (i.e. we have flagged this in the sys_private entry of the
283-
* info block).
284-
*
285-
* To protect against the timer going away while the interrupt is queued,
286-
* we require that the it_requeue_pending flag be set.
278+
* This function is called from the signal delivery code if
279+
* info->si_sys_private is not zero, which indicates that the timer has to
280+
* be rearmed. Restart the timer and update info::si_overrun.
287281
*/
288282
void posixtimer_rearm(struct kernel_siginfo *info)
289283
{

0 commit comments

Comments
 (0)