hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/include/linux/nmi.h
....@@ -122,6 +122,8 @@
122122 int watchdog_nmi_enable(unsigned int cpu);
123123 void watchdog_nmi_disable(unsigned int cpu);
124124
125
+void lockup_detector_reconfigure(void);
126
+
125127 /**
126128 * touch_nmi_watchdog - restart NMI watchdog timeout.
127129 *
....@@ -195,23 +197,18 @@
195197 #endif
196198
197199 #if defined(CONFIG_HARDLOCKUP_CHECK_TIMESTAMP) && \
198
- defined(CONFIG_HARDLOCKUP_DETECTOR)
200
+ defined(CONFIG_HARDLOCKUP_DETECTOR_PERF)
199201 void watchdog_update_hrtimer_threshold(u64 period);
200202 #else
201203 static inline void watchdog_update_hrtimer_threshold(u64 period) { }
202204 #endif
203205
204206 struct ctl_table;
205
-extern int proc_watchdog(struct ctl_table *, int ,
206
- void __user *, size_t *, loff_t *);
207
-extern int proc_nmi_watchdog(struct ctl_table *, int ,
208
- void __user *, size_t *, loff_t *);
209
-extern int proc_soft_watchdog(struct ctl_table *, int ,
210
- void __user *, size_t *, loff_t *);
211
-extern int proc_watchdog_thresh(struct ctl_table *, int ,
212
- void __user *, size_t *, loff_t *);
213
-extern int proc_watchdog_cpumask(struct ctl_table *, int,
214
- void __user *, size_t *, loff_t *);
207
+int proc_watchdog(struct ctl_table *, int, void *, size_t *, loff_t *);
208
+int proc_nmi_watchdog(struct ctl_table *, int , void *, size_t *, loff_t *);
209
+int proc_soft_watchdog(struct ctl_table *, int , void *, size_t *, loff_t *);
210
+int proc_watchdog_thresh(struct ctl_table *, int , void *, size_t *, loff_t *);
211
+int proc_watchdog_cpumask(struct ctl_table *, int, void *, size_t *, loff_t *);
215212
216213 #ifdef CONFIG_HAVE_ACPI_APEI_NMI
217214 #include <asm/nmi.h>