Patch "itimers: Handle relative timers with CONFIG_TIME_LOW_RES proper" has been added to the 4.2.y-ckt tree
This is a note to let you know that I have just added a patch titled
itimers: Handle relative timers with CONFIG_TIME_LOW_RES proper
to the linux-4.2.y-queue branch of the 4.2.y-ckt extended stable tree which can be found at:
http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-4.2.y-queue
This patch is scheduled to be released in version 4.2.8-ckt4.
If you, or anyone else, feels it should not be added to this tree, please reply to this email.
For more information about the 4.2.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Kamal
---8<------------------------------------------------------------
Quoted 1 line
From
f2c55ba9987da96a6b3d5ed74eb6e1890b8c0f7cMon Sep 17 00:00:00 2001
From: Thomas Gleixner <[email protected]>
Date: Thu, 14 Jan 2016 16:54:48 +0000
Subject: itimers: Handle relative timers with CONFIG_TIME_LOW_RES proper
commit 51cbb5242a41700a3f250ecfb48dcfb7e4375ea4 upstream.
As Helge reported for timerfd we have the same issue in itimers. We return remaining time larger than the programmed relative time to user space in case of CONFIG_TIME_LOW_RES=y. Use the proper function to adjust the extra time added in hrtimer_start_range_ns().
--- kernel/time/itimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/itimer.c +1 -1
@@ -26,7 +26,7 @@*/ static struct timeval itimer_get_remtime (struct hrtimer *timer) { -ktime_t rem =hrtimer_get_remaining (timer); +ktime_t rem =__hrtimer_get_remaining (timer, true);/* * Racy but safe: if the itimer expires after the above
--
1.9.1