[PATCH][5.10, 5.15, 6.1][0/1] hrtimer: Ignore slack time for RT tasks

Felix Moessbauer <[email protected]> Fri, 16 Feb 2024 18:11:55 +0100
Newsgroups org.kernel.vger.stable-rt
Message-ID <[email protected]>
This suggests a fix from 6.3 for stable that fixes a nasty bug in the
timing behavior of periodic RT tasks w.r.t timerslack_ns. While the
documentation clearly states that the slack time is ignored for RT tasks,
this is not the case for the hrtimer code. This patch fixes the issue and
applies to all stable kernels.

Best regards,
Felix Moessbauer
Siemens AG

Davidlohr Bueso (1):
  hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()

 kernel/time/hrtimer.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

-- 
2.39.2