Commit 9938406a authored by Michal Schmidt's avatar Michal Schmidt Committed by Linus Torvalds

[PATCH] Make touch_nmi_watchdog imply touch_softlockup_watchdog on all archs

touch_nmi_watchdog() calls touch_softlockup_watchdog() on both
architectures that implement it (i386 and x86_64).  On other architectures
it does nothing at all.  touch_nmi_watchdog() should imply
touch_softlockup_watchdog() on all architectures.  Suggested by Andi Kleen.

[heiko.carstens@de.ibm.com: s390 fix]
Signed-off-by: default avatarMichal Schmidt <xschmi00@stud.feec.vutbr.cz>
Cc: Andi Kleen <ak@muc.de>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Cc: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent df89a864
...@@ -19,8 +19,5 @@ enum interruption_class { ...@@ -19,8 +19,5 @@ enum interruption_class {
NR_IRQS, NR_IRQS,
}; };
#define touch_nmi_watchdog() do { } while(0)
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif #endif
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#ifndef LINUX_NMI_H #ifndef LINUX_NMI_H
#define LINUX_NMI_H #define LINUX_NMI_H
#include <linux/sched.h>
#include <asm/irq.h> #include <asm/irq.h>
/** /**
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
#ifdef ARCH_HAS_NMI_WATCHDOG #ifdef ARCH_HAS_NMI_WATCHDOG
extern void touch_nmi_watchdog(void); extern void touch_nmi_watchdog(void);
#else #else
# define touch_nmi_watchdog() do { } while(0) # define touch_nmi_watchdog() touch_softlockup_watchdog()
#endif #endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment