XenevaOS
Loading...
Searching...
No Matches
nmi.h
Go to the documentation of this file.
1#ifndef __LINUX_NMI_H__
2#define __LINUX_NMI_H__
3
4/*
5 * DCL <linux/nmi.h> -- one function: touch_nmi_watchdog().
6 *
7 * mainline's header is the whole NMI watchdog vocabulary: the perf-based
8 * hardlockup/softlockup detectors, watchdog_touch(), the cpumask plumbing.
9 * Xeneva has no NMI interrupt and no watchdog thread, so none of it can be
10 * anything but a lie, and there is exactly one caller in the tree --
11 * serial8250_console_write() at 8250_port.c:3336, which pokes it before
12 * taking the port lock so a console write cannot itself trip a lockup
13 * detector.
14 *
15 * An empty body is the correct answer rather than a stub pretending to work:
16 * with no detector, "kick the watchdog" has no effect *and* nothing to miss.
17 * When an iMX8MP bring-up grows a real watchdog, this is the header to fill
18 * in -- the call site is already in the right place.
19 */
20static inline void touch_nmi_watchdog(void)
21{
22}
23
24#endif /* __LINUX_NMI_H__ */