summaryrefslogtreecommitdiffstats
path: root/kernel/watchdog.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-08-20 08:54:30 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-08-20 08:54:30 -0700
commite18a5ebc2d507f42ca724581a1039ba058fa12da (patch)
tree9c2378623f5b97f82e1ed31ffb66f21924f35e32 /kernel/watchdog.c
parent58d4e450a490d5f02183f6834c12550ba26d3b47 (diff)
parent7edaeb6841dfb27e362288ab8466ebdc4972e867 (diff)
downloadlinux-e18a5ebc2d507f42ca724581a1039ba058fa12da.tar.gz
linux-e18a5ebc2d507f42ca724581a1039ba058fa12da.tar.bz2
linux-e18a5ebc2d507f42ca724581a1039ba058fa12da.zip
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull watchdog fix from Thomas Gleixner: "A fix for the hardlockup watchdog to prevent false positives with extreme Turbo-Modes which make the perf/NMI watchdog fire faster than the hrtimer which is used to verify. Slightly larger than the minimal fix, which just would increase the hrtimer frequency, but comes with extra overhead of more watchdog timer interrupts and thread wakeups for all users. With this change we restrict the overhead to the extreme Turbo-Mode systems" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: kernel/watchdog: Prevent false positives with turbo modes
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r--kernel/watchdog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 06d3389bca0d..f5d52024f6b7 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -240,6 +240,7 @@ static void set_sample_period(void)
* hardlockup detector generates a warning
*/
sample_period = get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5);
+ watchdog_update_hrtimer_threshold(sample_period);
}
/* Commands for resetting the watchdog */