timers: Remove historical extra jiffie for timeout in msleep()
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Thu, 29 Aug 2024 07:41:33 +0000 (09:41 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 29 Aug 2024 14:17:18 +0000 (16:17 +0200)
commit4381b895f544bb84b8cfb34ada64df67c9b2a4f0
tree57ae0fded11150c58c5d4e4e98577b49e6de060c
parented4fb6d7ef68111bb539283561953e5c6e9a6e38
timers: Remove historical extra jiffie for timeout in msleep()

msleep() and msleep_interruptible() add a jiffie to the requested timeout.

This extra jiffie was introduced to ensure that the timeout will not happen
earlier than specified.

Since the rework of the timer wheel, the enqueue path already takes care of
this. So the extra jiffie added by msleep*() is pointless now.

Remove this extra jiffie in msleep() and msleep_interruptible().

Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/all/20240829074133.4547-1-anna-maria@linutronix.de
kernel/time/timer.c