]> git.baikalelectronics.ru Git - kernel.git/commit
hrtimer: Ensure timerfd notification for HIGHRES=n
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Jul 2021 13:39:48 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:26 +0000 (09:47 +0200)
commite693862b86007c9fbf0c79d0811928d21999aae4
treea0ea9c16a23f1e81060e54b303fa04c142ce18fe
parent439acab267b3559e588c078e99907b53edb2d8f7
hrtimer: Ensure timerfd notification for HIGHRES=n

[ Upstream commit 8c3b5e6ec0fee18bc2ce38d1dfe913413205f908 ]

If high resolution timers are disabled the timerfd notification about a
clock was set event is not happening for all cases which use
clock_was_set_delayed() because that's a NOP for HIGHRES=n, which is wrong.

Make clock_was_set_delayed() unconditially available to fix that.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210713135158.196661266@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/hrtimer.h
kernel/time/hrtimer.c
kernel/time/tick-internal.h