[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230801132441.559222-7-frederic@kernel.org>
Date: Tue, 1 Aug 2023 15:24:41 +0200
From: Frederic Weisbecker <frederic@...nel.org>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Frederic Weisbecker <frederic@...nel.org>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
"Paul E . McKenney" <paulmck@...nel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Anna-Maria Behnsen <anna-maria@...utronix.de>,
Eric Dumazet <edumazet@...gle.com>
Subject: [RFC PATCH 6/6] timers: Make process_timeout() soft-interruptible
The most frequent timer can be safely interrupted by other vectors as
it's only performing a wake-up.
Signed-off-by: Frederic Weisbecker <frederic@...nel.org>
---
kernel/time/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 1e43f54def0e..0f6eb9c0901c 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -2180,7 +2180,7 @@ signed long __sched schedule_timeout(signed long timeout)
expire = timeout + jiffies;
timer.task = current;
- timer_setup_on_stack(&timer.timer, process_timeout, 0);
+ timer_setup_on_stack(&timer.timer, process_timeout, TIMER_SOFTINTERRUPTIBLE);
__mod_timer(&timer.timer, expire, MOD_TIMER_NOTPENDING);
schedule();
del_timer_sync(&timer.timer);
--
2.34.1
Powered by blists - more mailing lists