diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-27 11:55:06 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-27 11:55:06 -0800 |
commit | f907bb4c326d145c13504db184f38557d169f4bc (patch) | |
tree | be183b89d62db1a100ecb9c72991588fd3ce2e30 /kernel | |
parent | 9881051828375a872964f91bf985b8a35e4fbaef (diff) | |
parent | 93ad0fc088c5b4631f796c995bdd27a082ef33a6 (diff) | |
download | lwn-f907bb4c326d145c13504db184f38557d169f4bc.tar.gz lwn-f907bb4c326d145c13504db184f38557d169f4bc.zip |
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Glexiner:
"A single regression fix to address the unintended breakage of posix
cpu timers.
This is caused by a new sanity check in the common code, which fails
for posix cpu timers under certain conditions because the posix cpu
timer code never updates the variable which is checked"
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
posix-cpu-timers: Unbreak timer rearming
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/posix-cpu-timers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c index 8f0644af40be..80f955210861 100644 --- a/kernel/time/posix-cpu-timers.c +++ b/kernel/time/posix-cpu-timers.c @@ -685,6 +685,7 @@ static int posix_cpu_timer_set(struct k_itimer *timer, int timer_flags, * set up the signal and overrun bookkeeping. */ timer->it.cpu.incr = timespec64_to_ns(&new->it_interval); + timer->it_interval = ns_to_ktime(timer->it.cpu.incr); /* * This acts as a modification timestamp for the timer, |