diff options
author | Ahmed S. Darwish <a.darwish@linutronix.de> | 2020-03-09 18:15:29 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-17 10:50:02 +0200 |
commit | 2902207377f8b725d34be7d0a85c446b339792c7 (patch) | |
tree | be623fe664b4e772c2861184568dfc45493f3d10 /sound/ppc | |
parent | 3f755f5233a2a046842f22bcce167dfea4ce1909 (diff) | |
download | linux-stable-2902207377f8b725d34be7d0a85c446b339792c7.tar.gz linux-stable-2902207377f8b725d34be7d0a85c446b339792c7.tar.bz2 linux-stable-2902207377f8b725d34be7d0a85c446b339792c7.zip |
time/sched_clock: Expire timer in hardirq context
[ Upstream commit 2c8bd58812ee3dbf0d78b566822f7eacd34bdd7b ]
To minimize latency, PREEMPT_RT kernels expires hrtimers in preemptible
softirq context by default. This can be overriden by marking the timer's
expiry with HRTIMER_MODE_HARD.
sched_clock_timer is missing this annotation: if its callback is preempted
and the duration of the preemption exceeds the wrap around time of the
underlying clocksource, sched clock will get out of sync.
Mark the sched_clock_timer for expiry in hard interrupt context.
Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200309181529.26558-1-a.darwish@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/ppc')
0 files changed, 0 insertions, 0 deletions