mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Frederic Weisbecker
parent
24aea4cc48
commit
566e2d8253
@@ -574,15 +574,10 @@ static enum alarmtimer_restart alarm_handle_timer(struct alarm *alarm,
|
||||
it.alarm.alarmtimer);
|
||||
enum alarmtimer_restart result = ALARMTIMER_NORESTART;
|
||||
unsigned long flags;
|
||||
int si_private = 0;
|
||||
|
||||
spin_lock_irqsave(&ptr->it_lock, flags);
|
||||
|
||||
ptr->it_active = 0;
|
||||
if (ptr->it_interval)
|
||||
si_private = ++ptr->it_requeue_pending;
|
||||
|
||||
if (posix_timer_event(ptr, si_private) && ptr->it_interval) {
|
||||
if (posix_timer_queue_signal(ptr) && ptr->it_interval) {
|
||||
/*
|
||||
* Handle ignored signals and rearm the timer. This will go
|
||||
* away once we handle ignored signals proper. Ensure that
|
||||
|
||||
Reference in New Issue
Block a user