diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nmi.h | 8 | ||||
-rw-r--r-- | include/linux/sched.h | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 22cc7960b649..abd48aacaf79 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h | |||
@@ -20,7 +20,7 @@ extern void touch_nmi_watchdog(void); | |||
20 | extern void acpi_nmi_disable(void); | 20 | extern void acpi_nmi_disable(void); |
21 | extern void acpi_nmi_enable(void); | 21 | extern void acpi_nmi_enable(void); |
22 | #else | 22 | #else |
23 | #ifndef CONFIG_NMI_WATCHDOG | 23 | #ifndef CONFIG_LOCKUP_DETECTOR |
24 | static inline void touch_nmi_watchdog(void) | 24 | static inline void touch_nmi_watchdog(void) |
25 | { | 25 | { |
26 | touch_softlockup_watchdog(); | 26 | touch_softlockup_watchdog(); |
@@ -51,12 +51,12 @@ static inline bool trigger_all_cpu_backtrace(void) | |||
51 | } | 51 | } |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #ifdef CONFIG_NMI_WATCHDOG | 54 | #ifdef CONFIG_LOCKUP_DETECTOR |
55 | int hw_nmi_is_cpu_stuck(struct pt_regs *); | 55 | int hw_nmi_is_cpu_stuck(struct pt_regs *); |
56 | u64 hw_nmi_get_sample_period(void); | 56 | u64 hw_nmi_get_sample_period(void); |
57 | extern int nmi_watchdog_enabled; | 57 | extern int watchdog_enabled; |
58 | struct ctl_table; | 58 | struct ctl_table; |
59 | extern int proc_nmi_enabled(struct ctl_table *, int , | 59 | extern int proc_dowatchdog_enabled(struct ctl_table *, int , |
60 | void __user *, size_t *, loff_t *); | 60 | void __user *, size_t *, loff_t *); |
61 | #endif | 61 | #endif |
62 | 62 | ||
diff --git a/include/linux/sched.h b/include/linux/sched.h index dad7f668ebf7..37efe8fa5306 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -346,6 +346,12 @@ extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, | |||
346 | size_t *lenp, loff_t *ppos); | 346 | size_t *lenp, loff_t *ppos); |
347 | #endif | 347 | #endif |
348 | 348 | ||
349 | #ifdef CONFIG_LOCKUP_DETECTOR | ||
350 | extern int proc_dowatchdog_thresh(struct ctl_table *table, int write, | ||
351 | void __user *buffer, | ||
352 | size_t *lenp, loff_t *ppos); | ||
353 | #endif | ||
354 | |||
349 | /* Attach to any functions which should be ignored in wchan output. */ | 355 | /* Attach to any functions which should be ignored in wchan output. */ |
350 | #define __sched __attribute__((__section__(".sched.text"))) | 356 | #define __sched __attribute__((__section__(".sched.text"))) |
351 | 357 | ||