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:50:25 +0000 (09:50 +0200)
commit3d12ccecfa316730abaf0a930711ea5cce4fe87f
tree8f17fe23c535e29e792c924bb7be399261e1c640
parentaadfa1d6ca5f02e7b5177e516b290a3ae38b1c66
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