watchdog: Change the default timeout and configure nmi watchdog period based on watch...
[cascardo/linux.git] / arch / x86 / kernel / apic / hw_nmi.c
index 5260fe9..d5e57db 100644 (file)
@@ -19,9 +19,9 @@
 #include <linux/delay.h>
 
 #ifdef CONFIG_HARDLOCKUP_DETECTOR
-u64 hw_nmi_get_sample_period(void)
+u64 hw_nmi_get_sample_period(int watchdog_thresh)
 {
-       return (u64)(cpu_khz) * 1000 * 60;
+       return (u64)(cpu_khz) * 1000 * watchdog_thresh;
 }
 #endif