Skip to content

hrtimers: Handle remaining time correctly for CONFIG_TIME_LOW_RES=y

Thomas Gleixner linux-m68k linux-parisc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hrtimer: Handle remaining time proper for TIME_LOW_RESinclude/linux/hrtimer.h kernel/time/hrtimer.c kernel/time/timer_list.c+69 -222 replies
2/4timerfd: Handle relative timers with CONFIG_TIME_LOW_RES properfs/timerfd.c+1 -10 replies
2/4timerfd: Handle relative timers with CONFIG_TIME_LOW_RES properfs/timerfd.c+1 -10 replies
3/4posix-timers: Handle relative timers with CONFIG_TIME_LOW_RES properkernel/time/posix-timers.c+1 -10 replies
4/4itimers: Handle relative timers with CONFIG_TIME_LOW_RES properkernel/time/itimer.c+1 -10 replies
4/4itimers: Handle relative timers with CONFIG_TIME_LOW_RES properkernel/time/itimer.c+1 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchHelge Deller
1/4T-b T-b
2/4
2/4
3/4
4/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/4] hrtimers: Handle remaining time correctly for CONFIG_TIME_LOW_RES=y

Helge reported, that timerfd returns occasionally remaining time larger than the relative time which was used to arm the timer. This is caused by the extra jiffy which we add in hrtimer_start_range_ns() if CONFIG_TIME_LOW_RES=y.

This is not only an issue for timerfd. We have the same problem in posix-timers and itimers.

This series adds infrastructure to the core to handle that cases and converts the users over to it.

Thanks,

tglx

---
 fs/timerfd.c               |    2 -
 include/linux/hrtimer.h    |   34 +++++++++++++++++++++++++--
 kernel/time/hrtimer.c      |   55 ++++++++++++++++++++++++++++++---------------
 kernel/time/itimer.c       |    2 -
 kernel/time/posix-timers.c |    2 -
 kernel/time/timer_list.c   |    2 -
 6 files changed, 72 insertions(+), 25 deletions(-)