]> www.infradead.org Git - linux.git/commitdiff
posix-cpu-timers: Remove incorrect comment in posix_cpu_timer_set()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 10 Jun 2024 16:42:23 +0000 (18:42 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Mon, 29 Jul 2024 19:57:34 +0000 (21:57 +0200)
A leftover from historical code which describes fiction.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
kernel/time/posix-cpu-timers.c

index b1a9a2ffddc967a0e768e6e77c5ebd3e8ce4a383..eb28150c8d63a4690635eb18fc66bf707bf5279a 100644 (file)
@@ -689,13 +689,8 @@ static int posix_cpu_timer_set(struct k_itimer *timer, int timer_flags,
                        __posix_cpu_timer_get(timer, old, now);
        }
 
+       /* Retry if the timer expiry is running concurrently */
        if (unlikely(ret)) {
-               /*
-                * We are colliding with the timer actually firing.
-                * Punt after filling in the timer's old value, and
-                * disable this firing since we are already reporting
-                * it as an overrun (thanks to bump_cpu_timer above).
-                */
                unlock_task_sighand(p, &flags);
                goto out;
        }