Commit 0d130066 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Heiko Carstens

[S390] Cleanup vmwatch printk messages.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent ded77fb4
...@@ -92,23 +92,15 @@ static int vmwdt_keepalive(void) ...@@ -92,23 +92,15 @@ static int vmwdt_keepalive(void)
func = vmwdt_conceal ? (wdt_init | wdt_conceal) : wdt_init; func = vmwdt_conceal ? (wdt_init | wdt_conceal) : wdt_init;
ret = __diag288(func, vmwdt_interval, ebc_cmd, len); ret = __diag288(func, vmwdt_interval, ebc_cmd, len);
WARN_ON(ret != 0);
kfree(ebc_cmd); kfree(ebc_cmd);
if (ret) {
printk(KERN_WARNING "%s: problem setting interval %d, "
"cmd %s\n", __func__, vmwdt_interval,
vmwdt_cmd);
}
return ret; return ret;
} }
static int vmwdt_disable(void) static int vmwdt_disable(void)
{ {
int ret = __diag288(wdt_cancel, 0, "", 0); int ret = __diag288(wdt_cancel, 0, "", 0);
if (ret) { WARN_ON(ret != 0);
printk(KERN_WARNING "%s: problem disabling watchdog\n",
__func__);
}
return ret; return ret;
} }
...@@ -121,10 +113,8 @@ static int __init vmwdt_probe(void) ...@@ -121,10 +113,8 @@ static int __init vmwdt_probe(void)
static char __initdata ebc_begin[] = { static char __initdata ebc_begin[] = {
194, 197, 199, 201, 213 194, 197, 199, 201, 213
}; };
if (__diag288(wdt_init, 15, ebc_begin, sizeof(ebc_begin)) != 0) { if (__diag288(wdt_init, 15, ebc_begin, sizeof(ebc_begin)) != 0)
printk(KERN_INFO "z/VM watchdog not available\n");
return -EINVAL; return -EINVAL;
}
return vmwdt_disable(); return vmwdt_disable();
} }
......
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