diff options
Diffstat (limited to 'arch/mn10300/kernel/mn10300-watchdog-low.S')
-rw-r--r-- | arch/mn10300/kernel/mn10300-watchdog-low.S | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mn10300/kernel/mn10300-watchdog-low.S b/arch/mn10300/kernel/mn10300-watchdog-low.S index 996244745cca..f2f5c9cfaabd 100644 --- a/arch/mn10300/kernel/mn10300-watchdog-low.S +++ b/arch/mn10300/kernel/mn10300-watchdog-low.S | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <asm/intctl-regs.h> | 16 | #include <asm/intctl-regs.h> |
17 | #include <asm/timer-regs.h> | 17 | #include <asm/timer-regs.h> |
18 | #include <asm/frame.inc> | 18 | #include <asm/frame.inc> |
19 | #include <linux/threads.h> | ||
19 | 20 | ||
20 | .text | 21 | .text |
21 | 22 | ||
@@ -53,7 +54,13 @@ watchdog_handler: | |||
53 | .type touch_nmi_watchdog,@function | 54 | .type touch_nmi_watchdog,@function |
54 | touch_nmi_watchdog: | 55 | touch_nmi_watchdog: |
55 | clr d0 | 56 | clr d0 |
56 | mov d0,(watchdog_alert_counter) | 57 | clr d1 |
58 | mov watchdog_alert_counter, a0 | ||
59 | setlb | ||
60 | mov d0, (a0+) | ||
61 | inc d1 | ||
62 | cmp NR_CPUS, d1 | ||
63 | lne | ||
57 | ret [],0 | 64 | ret [],0 |
58 | 65 | ||
59 | .size touch_nmi_watchdog,.-touch_nmi_watchdog | 66 | .size touch_nmi_watchdog,.-touch_nmi_watchdog |