Anna-Maria Gleixner
48d0c9becc
hrtimer: Ensure POSIX compliance (relative CLOCK_REALTIME hrtimers)
...
The POSIX specification defines that relative CLOCK_REALTIME timers are not
affected by clock modifications. Those timers have to use CLOCK_MONOTONIC
to ensure POSIX compliance.
The introduction of the additional HRTIMER_MODE_PINNED mode broke this
requirement for pinned timers.
There is no user space visible impact because user space timers are not
using pinned mode, but for consistency reasons this needs to be fixed.
Check whether the mode has the HRTIMER_MODE_REL bit set instead of
comparing with HRTIMER_MODE_ABS.
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: keescook@chromium.org
Fixes: 597d027573 ("timers: Framework for identifying pinned timers")
Link: http://lkml.kernel.org/r/20171221104205.7269-7-anna-maria@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-01-16 02:35:45 +01:00
..
alarmtimer.c
alarmtimer: Ensure RTC module is not unloaded
2017-08-31 21:36:45 +02:00
clockevents.c
clockevents: Retry programming min delta up to 10 times
2017-10-19 16:29:15 +02:00
clocksource.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
hrtimer.c
hrtimer: Ensure POSIX compliance (relative CLOCK_REALTIME hrtimers)
2018-01-16 02:35:45 +01:00
itimer.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
jiffies.c
jiffies: Revert bogus conversion of NSEC_PER_SEC to TICK_NSEC
2017-03-07 11:03:28 +01:00
Kconfig
sched/isolation: Make CONFIG_NO_HZ_FULL select CONFIG_CPU_ISOLATION
2017-12-18 13:46:42 +01:00
Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
ntp.c
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
ntp_internal.h
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
posix-clock.c
posix-timers: Prevent UB from shifting negative signed value
2018-01-04 14:57:10 +01:00
posix-cpu-timers.c
posix-cpu-timers: Make set_process_cpu_timer() more robust
2018-01-14 20:50:59 +01:00
posix-stubs.c
posix-stubs: Use get_timespec64() and put_timespec64()
2017-10-17 17:22:27 +02:00
posix-timers.c
posix-timer: Properly check sigevent->sigev_notify
2017-12-15 11:08:40 +01:00
posix-timers.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sched_clock.c
timers, sched_clock: Update timeout for clock wrap
2017-03-23 12:30:27 -07:00
test_udelay.c
tick-broadcast-hrtimer.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
tick-broadcast.c
tick/broadcast: Make tick_broadcast_setup_oneshot() static
2017-06-12 18:56:01 +02:00
tick-common.c
ktime: Cleanup ktime_set() usage
2016-12-25 17:21:22 +01:00
tick-internal.h
hrtimer: Optimize the hrtimer code by using static keys for migration_enable/nohz_active
2018-01-16 02:35:44 +01:00
tick-oneshot.c
clockevents: Update clockevents device next_event on stop
2017-11-01 18:20:17 +01:00
tick-sched.c
hrtimer: Optimize the hrtimer code by using static keys for migration_enable/nohz_active
2018-01-16 02:35:44 +01:00
tick-sched.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
time.c
Merge branch 'fortglx/4.15/time' of https://git.linaro.org/people/john.stultz/linux into timers/core
2017-10-31 23:17:28 +01:00
timeconst.bc
time: Introduce jiffies64_to_nsecs()
2017-02-01 09:13:45 +01:00
timeconv.c
timecounter.c
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
timekeeping.c
timekeeping: Remove CONFIG_GENERIC_TIME_VSYSCALL_OLD
2017-11-14 11:20:25 +01:00
timekeeping.h
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
timekeeping_debug.c
PM / timekeeping: Print debug messages when requested
2017-07-23 00:03:43 +02:00
timekeeping_internal.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
timer.c
hrtimer: Optimize the hrtimer code by using static keys for migration_enable/nohz_active
2018-01-16 02:35:44 +01:00
timer_list.c
timer/debug: Change /proc/timer_list from 0444 to 0400
2017-11-13 16:04:06 +01:00