]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/timerfd: Use the new alarm/hrtimer functions
authorThomas Gleixner <tglx@kernel.org>
Wed, 8 Apr 2026 11:54:20 +0000 (13:54 +0200)
committerThomas Gleixner <tglx@kernel.org>
Fri, 1 May 2026 19:36:13 +0000 (21:36 +0200)
commit7dda99952cede01e1225f8c4c856369a2cfda6ca
tree77d06f01e52463f68bfcf01f787e22f1b878d7fa
parentf4b58f61da79032b03d25f8f1a5a697db84a46f3
fs/timerfd: Use the new alarm/hrtimer functions

Like any other user controlled interface, timerfd based timers can be
programmed with expiry times in the past or vary small intervals.

Both hrtimer and alarmtimer provide new interfaces which return the queued
state of the timer. If the timer was already expired, then let the callsite
handle the timerfd context update so that the full round trip through the
hrtimer interrupt is avoided.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://patch.msgid.link/20260408114952.469141112@kernel.org
fs/timerfd.c