Skip to content
Snippets Groups Projects
Commit 90ff1f30 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds
Browse files

hrtimers: Fix typo causing erratic timers


commit 9ec26907 ("timerfd: Manage cancelable timers in timerfd")
introduced a CONFIG_HIGHRES_TIMERS (should be CONFIG_HIGH_RES_TIMERS)
typo, which caused applications depending on CLOCK_REALTIME timers to
become sluggy due to the fact that the time base of the realtime
timers was not updated when the wall clock time was set.

This causes anything from 100% CPU use for some applications to odd
delays and hickups.

Reported-bisected-and-tested-by: default avatarAnca Emanuel <anca.emanuel@gmail.com>
Tested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Fatfingered-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 51b550a4
No related branches found
No related tags found
No related merge requests found
......@@ -748,7 +748,7 @@ static inline void retrigger_next_event(void *arg) { }
*/
void clock_was_set(void)
{
#ifdef CONFIG_HIGHRES_TIMERS
#ifdef CONFIG_HIGH_RES_TIMERS
/* Retrigger the CPU local events everywhere */
on_each_cpu(retrigger_next_event, NULL, 1);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment