summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/hvcalls.S
diff options
context:
space:
mode:
authorwim.coekaerts@oracle.com2016-01-29 18:39:38 +0100
committerDavid S. Miller2016-01-31 20:06:24 +0100
commitca0bb0798022732773752fee97bb633c6f3623d2 (patch)
tree7907fe04c0285a41145b76fbd5669ec18e627857 /arch/sparc/kernel/hvcalls.S
parentsparc: Fix system call tracing register handling. (diff)
downloadkernel-qcow2-linux-ca0bb0798022732773752fee97bb633c6f3623d2.tar.gz
kernel-qcow2-linux-ca0bb0798022732773752fee97bb633c6f3623d2.tar.xz
kernel-qcow2-linux-ca0bb0798022732773752fee97bb633c6f3623d2.zip
Add sun4v_wdt watchdog driver
This driver adds sparc hypervisor watchdog support. The default timeout is 60 seconds and the range is between 1 and 31536000 seconds. Both watchdog-resolution and watchdog-max-timeout MD properties settings are supported. Signed-off-by: Wim Coekaerts <wim.coekaerts@oracle.com> Reviewed-by: Julian Calaby <julian.calaby@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/hvcalls.S')
-rw-r--r--arch/sparc/kernel/hvcalls.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/kernel/hvcalls.S b/arch/sparc/kernel/hvcalls.S
index afbaba52d2f1..d127130bf424 100644
--- a/arch/sparc/kernel/hvcalls.S
+++ b/arch/sparc/kernel/hvcalls.S
@@ -338,8 +338,9 @@ ENTRY(sun4v_mach_set_watchdog)
mov %o1, %o4
mov HV_FAST_MACH_SET_WATCHDOG, %o5
ta HV_FAST_TRAP
+ brnz,a,pn %o4, 0f
stx %o1, [%o4]
- retl
+0: retl
nop
ENDPROC(sun4v_mach_set_watchdog)