]> git.itanic.dy.fi Git - linux-stable/commit
hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 23 Jan 2023 17:32:06 +0000 (09:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:12:50 +0000 (09:12 +0100)
commite1c1bdaa387976cb577769a58abce5ef3e2bc88d
tree0956fc64844de971aea4b290bff9317017371a4c
parent51a8f31b939c21994f43e2d01e1a97719c8685df
hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()

commit 0c52310f260014d95c1310364379772cb74cf82d upstream.

While in theory the timer can be triggered before expires + delta, for the
cases of RT tasks they really have no business giving any lenience for
extra slack time, so override any passed value by the user and always use
zero for schedule_hrtimeout_range() calls. Furthermore, this is similar to
what the nanosleep(2) family already does with current->timer_slack_ns.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230123173206.6764-3-dave@stgolabs.net
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/time/hrtimer.c