Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99008
b: refs/heads/master
c: 0d13006
h: refs/heads/master
v: v3
  • Loading branch information
Martin Schwidefsky authored and Heiko Carstens committed Jul 14, 2008
1 parent da6f5cb commit 66bdea8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ded77fb4dfcd6f84e564ddd9458208bf5b691c7f
refs/heads/master: 0d130066801af8f0a0ea8c70c9c7374c51fd1a92
16 changes: 3 additions & 13 deletions trunk/drivers/s390/char/vmwatchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,15 @@ static int vmwdt_keepalive(void)

func = vmwdt_conceal ? (wdt_init | wdt_conceal) : wdt_init;
ret = __diag288(func, vmwdt_interval, ebc_cmd, len);
WARN_ON(ret != 0);
kfree(ebc_cmd);

if (ret) {
printk(KERN_WARNING "%s: problem setting interval %d, "
"cmd %s\n", __func__, vmwdt_interval,
vmwdt_cmd);
}
return ret;
}

static int vmwdt_disable(void)
{
int ret = __diag288(wdt_cancel, 0, "", 0);
if (ret) {
printk(KERN_WARNING "%s: problem disabling watchdog\n",
__func__);
}
WARN_ON(ret != 0);
return ret;
}

Expand All @@ -121,10 +113,8 @@ static int __init vmwdt_probe(void)
static char __initdata ebc_begin[] = {
194, 197, 199, 201, 213
};
if (__diag288(wdt_init, 15, ebc_begin, sizeof(ebc_begin)) != 0) {
printk(KERN_INFO "z/VM watchdog not available\n");
if (__diag288(wdt_init, 15, ebc_begin, sizeof(ebc_begin)) != 0)
return -EINVAL;
}
return vmwdt_disable();
}

Expand Down

0 comments on commit 66bdea8

Please sign in to comment.