.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Watchdog driver for z/VM and LPAR using the diag 288 interface. |
---|
3 | 4 | * |
---|
.. | .. |
---|
25 | 26 | #include <linux/module.h> |
---|
26 | 27 | #include <linux/moduleparam.h> |
---|
27 | 28 | #include <linux/slab.h> |
---|
28 | | -#include <linux/miscdevice.h> |
---|
29 | 29 | #include <linux/watchdog.h> |
---|
30 | 30 | #include <linux/suspend.h> |
---|
31 | 31 | #include <asm/ebcdic.h> |
---|
32 | 32 | #include <asm/diag.h> |
---|
33 | 33 | #include <linux/io.h> |
---|
34 | | -#include <linux/uaccess.h> |
---|
35 | 34 | |
---|
36 | 35 | #define MAX_CMDLEN 240 |
---|
37 | 36 | #define DEFAULT_CMD "SYSTEM RESTART" |
---|
.. | .. |
---|
69 | 68 | module_param_named(nowayout, nowayout_info, bool, 0444); |
---|
70 | 69 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default = CONFIG_WATCHDOG_NOWAYOUT)"); |
---|
71 | 70 | |
---|
72 | | -MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |
---|
73 | 71 | MODULE_ALIAS("vmwatchdog"); |
---|
74 | 72 | |
---|
75 | 73 | static int __diag288(unsigned int func, unsigned int timeout, |
---|