diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2024-06-10 19:42:32 +0300 |
---|---|---|
committer | Frederic Weisbecker <frederic@kernel.org> | 2024-07-29 22:57:35 +0300 |
commit | 566e2d82536cf77b5ed7c03f887e7c36bf86feaa (patch) | |
tree | ccd9f056255c977254c018ce32dd0a0ad493502b /kernel/time/posix-cpu-timers.c | |
parent | 24aea4cc483240ead3fdf581045a636dc7ea1352 (diff) | |
download | linux-566e2d82536cf77b5ed7c03f887e7c36bf86feaa.tar.xz |
posix-timers: Consolidate signal queueing
Rename posix_timer_event() to posix_timer_queue_signal() as this is what
the function is about.
Consolidate the requeue pending and deactivation updates into that function
as there is no point in doing this in all incarnations of posix timers.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
-rw-r--r-- | kernel/time/posix-cpu-timers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c index bcc2b83e6666..6bcee4704059 100644 --- a/kernel/time/posix-cpu-timers.c +++ b/kernel/time/posix-cpu-timers.c @@ -598,9 +598,9 @@ static void cpu_timer_fire(struct k_itimer *timer) /* * One-shot timer. Clear it as soon as it's fired. */ - posix_timer_event(timer, 0); + posix_timer_queue_signal(timer); cpu_timer_setexpires(ctmr, 0); - } else if (posix_timer_event(timer, ++timer->it_requeue_pending)) { + } else if (posix_timer_queue_signal(timer)) { /* * The signal did not get queued because the signal * was ignored, so we won't get any callback to |