mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
watchdog: Replace __MODULE_STRING() with __stringify()
__MODULE_STRING() has been an alias for __stringify() since "[PATCH] MODULE_PARM support for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end of linux/module.h Replace the remaining uses of __MODULE_STRING() with __stringify() in preparation for its removal. Link: https://git.kernel.org/tglx/history/c/136839a1b4 [1] Signed-off-by: Petr Pavlu <petr.pavlu@suse.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://patch.msgid.link/20260922-module-string-v1-1-c18766690185@suse.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
07c03fc1d0
commit
b152ca999c
|
|
@ -64,6 +64,7 @@
|
|||
#include <linux/init.h> /* For __init/__exit/... */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/io.h> /* For inb/outb/... */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
|
||||
/* Module information */
|
||||
#define DRV_NAME "acquirewdt"
|
||||
|
|
@ -92,7 +93,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Watchdog Operations
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DRIVER_NAME "advantech_ec_wdt"
|
||||
|
|
@ -49,7 +50,7 @@ static ktime_t ec_timestamp;
|
|||
|
||||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Default Watchdog timer setting (" __MODULE_STRING(DEFAULT_TIME) "s). The range is from " __MODULE_STRING(MIN_TIME) " to " __MODULE_STRING(MAX_TIME) ".");
|
||||
"Default Watchdog timer setting (" __stringify(DEFAULT_TIME) "s). The range is from " __stringify(MIN_TIME) " to " __stringify(MAX_TIME) ".");
|
||||
|
||||
static void adv_ec_wdt_timing_gate(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
#define DRV_NAME "advantechwdt"
|
||||
|
|
@ -71,13 +72,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1<= timeout <=63, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Watchdog Operations
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/* Base address of timer and watchdog registers */
|
||||
#define TIMER_CTRL 0x0
|
||||
|
|
@ -44,12 +45,12 @@ struct airoha_wdt_desc {
|
|||
static int heartbeat = WDT_HEARTBEAT;
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. (default="
|
||||
__MODULE_STRING(WDT_HEARTBEAT) ")");
|
||||
__stringify(WDT_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int airoha_wdt_start(struct watchdog_device *wdog_dev)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
#include <linux/pci.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define WATCHDOG_NAME "ALi_M1535"
|
||||
#define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
|
||||
|
|
@ -34,13 +35,13 @@ static int timeout = WATCHDOG_TIMEOUT;
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (0 < timeout < 18000, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* ali_start - start watchdog countdown
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include <linux/pci.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
#define WDT_ENABLE 0x9C
|
||||
|
|
@ -64,7 +65,7 @@ static int timeout = WATCHDOG_TIMEOUT;
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (1<=timeout<=3600, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static int use_gpio; /* Use the pic (for a1d revision alim7101) */
|
||||
module_param(use_gpio, int, 0);
|
||||
|
|
@ -82,7 +83,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Whack the dog
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <uapi/linux/psci.h>
|
||||
|
|
@ -191,7 +192,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Julius Werner <jwerner@chromium.org>");
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -70,7 +71,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct armada_37xx_watchdog {
|
||||
struct watchdog_device wdt;
|
||||
|
|
|
|||
|
|
@ -17,12 +17,13 @@
|
|||
#include <linux/of_irq.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
struct aspeed_wdt_scu {
|
||||
const char *compatible;
|
||||
u32 reset_status_reg;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
|
@ -36,13 +37,13 @@ static struct regmap *regmap_st;
|
|||
|
||||
module_param(wdt_time, int, 0);
|
||||
MODULE_PARM_DESC(wdt_time, "Watchdog time in seconds. (default="
|
||||
__MODULE_STRING(WDT_DEFAULT_TIME) ")");
|
||||
__stringify(WDT_DEFAULT_TIME) ")");
|
||||
|
||||
#ifdef CONFIG_WATCHDOG_NOWAYOUT
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include <linux/uaccess.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "at91sam9_wdt.h"
|
||||
|
||||
|
|
@ -70,12 +71,12 @@
|
|||
static int heartbeat;
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. "
|
||||
"(default = " __MODULE_STRING(WDT_HEARTBEAT) ")");
|
||||
"(default = " __stringify(WDT_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd)
|
||||
struct at91wdt {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <linux/pm.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
/* Register definitions */
|
||||
|
|
@ -570,11 +571,11 @@ module_platform_driver(atcwdt_driver);
|
|||
|
||||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
|
||||
__MODULE_STRING(ATCWDT_TIMEOUT) ")");
|
||||
__stringify(ATCWDT_TIMEOUT) ")");
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("CL Wang <cl634@andestech.com>");
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DRIVER_NAME "ath79-wdt"
|
||||
|
||||
|
|
@ -50,12 +51,12 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int timeout = WDT_TIMEOUT;
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds "
|
||||
"(default=" __MODULE_STRING(WDT_TIMEOUT) "s)");
|
||||
"(default=" __stringify(WDT_TIMEOUT) "s)");
|
||||
|
||||
static unsigned long wdt_flags;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <linux/of_address.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define PM_RSTC 0x1c
|
||||
#define PM_RSTS 0x20
|
||||
|
|
@ -229,7 +230,7 @@ MODULE_PARM_DESC(heartbeat, "Initial watchdog heartbeat in seconds");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_ALIAS("platform:bcm2835-wdt");
|
||||
MODULE_AUTHOR("Lubomir Rintel <lkundrak@v3.sk>");
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <linux/watchdog.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DRV_NAME "bcm47xx_wdt"
|
||||
|
||||
|
|
@ -33,12 +34,12 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog time in seconds. (default="
|
||||
__MODULE_STRING(WDT_DEFAULT_TIME) ")");
|
||||
__stringify(WDT_DEFAULT_TIME) ")");
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static inline struct bcm47xx_wdt *bcm47xx_wdt_get(struct watchdog_device *wdd)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/platform_data/bcm7038_wdt.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define WDT_START_1 0xff00
|
||||
|
|
@ -228,7 +229,7 @@ module_platform_driver(bcm7038_wdt_driver);
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("Driver for Broadcom 7038 SoCs Watchdog");
|
||||
MODULE_AUTHOR("Justin Chen");
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include <linux/module.h>
|
||||
#include <linux/smp.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#include <asm/reg_booke.h>
|
||||
|
|
@ -43,7 +44,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#ifdef CONFIG_PPC_E500
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define CDNS_WDT_DEFAULT_TIMEOUT 10
|
||||
|
|
@ -52,12 +53,12 @@ static int nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(wdt_timeout, int, 0644);
|
||||
MODULE_PARM_DESC(wdt_timeout,
|
||||
"Watchdog time in seconds. (default="
|
||||
__MODULE_STRING(CDNS_WDT_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(CDNS_WDT_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
module_param(nowayout, int, 0644);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/**
|
||||
* struct cdns_wdt - Watchdog device structure
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/limits.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#include <linux/mfd/cgbc.h>
|
||||
|
|
@ -38,19 +39,19 @@ static unsigned int timeout;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (>=0, default="
|
||||
__MODULE_STRING(CGBC_WDT_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(CGBC_WDT_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
static unsigned int pretimeout = CGBC_WDT_DEFAULT_PRETIMEOUT;
|
||||
module_param(pretimeout, uint, 0);
|
||||
MODULE_PARM_DESC(pretimeout,
|
||||
"Watchdog pretimeout in seconds. (>=0, default="
|
||||
__MODULE_STRING(CGBC_WDT_DEFAULT_PRETIMEOUT) ")");
|
||||
__stringify(CGBC_WDT_DEFAULT_PRETIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct cgbc_wdt_data {
|
||||
struct cgbc_device_data *cgbc;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <linux/mfd/da9052/reg.h>
|
||||
#include <linux/mfd/da9052/da9052.h>
|
||||
|
|
@ -34,13 +35,13 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int timeout;
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (default = "
|
||||
__MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(WDT_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
static const struct {
|
||||
u8 reg_val;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <linux/mfd/da9055/core.h>
|
||||
#include <linux/mfd/da9055/reg.h>
|
||||
|
|
@ -23,7 +24,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#define DA9055_DEF_TIMEOUT 4
|
||||
#define DA9055_TWDMIN 256
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <linux/device.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define MODULE_NAME "DAVINCI-WDT: "
|
||||
|
||||
|
|
@ -250,8 +251,8 @@ MODULE_DESCRIPTION("DaVinci Watchdog Driver");
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat period in seconds from 1 to "
|
||||
__MODULE_STRING(MAX_HEARTBEAT) ", default "
|
||||
__MODULE_STRING(DEFAULT_HEARTBEAT));
|
||||
__stringify(MAX_HEARTBEAT) ", default "
|
||||
__stringify(DEFAULT_HEARTBEAT));
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:davinci-wdt");
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/uaccess.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <linux/mfd/db8500-prcmu.h>
|
||||
|
||||
|
|
@ -27,13 +28,13 @@ static unsigned int timeout = WATCHDOG_TIMEOUT;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int db8500_wdt_start(struct watchdog_device *wdd)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/reset.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define WDOG_CONTROL_REG_OFFSET 0x00
|
||||
|
|
@ -66,7 +67,7 @@ static const u32 dw_wdt_fix_tops[DW_WDT_NUM_TOPS] = {
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
enum dw_wdt_rmod {
|
||||
DW_WDT_RMOD_RESET = 1,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define MODULE_NAME "ebc-c384_wdt"
|
||||
|
|
@ -30,12 +31,12 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned timeout;
|
||||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static int ebc_c384_wdt_start(struct watchdog_device *wdev)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
static unsigned long eurwdt_is_open;
|
||||
|
|
@ -77,7 +78,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Some symbolic names
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DRV_NAME "exar_wdt"
|
||||
|
|
@ -70,13 +71,13 @@ static int timeout = WATCHDOG_TIMEOUT;
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1<=timeout<=15300, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int exar_sio_enter(const unsigned short config_port,
|
||||
const unsigned char key)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/ioport.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DRVNAME "f71808e_wdt"
|
||||
|
|
@ -81,20 +82,20 @@ static int timeout = WATCHDOG_TIMEOUT; /* default timeout in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1<= timeout <="
|
||||
__MODULE_STRING(WATCHDOG_MAX_TIMEOUT) " (default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_MAX_TIMEOUT) " (default="
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static unsigned int pulse_width = WATCHDOG_PULSE_WIDTH;
|
||||
module_param(pulse_width, uint, 0);
|
||||
MODULE_PARM_DESC(pulse_width,
|
||||
"Watchdog signal pulse width. 0(=level), 1, 25, 30, 125, 150, 5000 or 6000 ms"
|
||||
" (default=" __MODULE_STRING(WATCHDOG_PULSE_WIDTH) ")");
|
||||
" (default=" __stringify(WATCHDOG_PULSE_WIDTH) ")");
|
||||
|
||||
static unsigned int f71862fg_pin = WATCHDOG_F71862FG_PIN;
|
||||
module_param(f71862fg_pin, uint, 0);
|
||||
MODULE_PARM_DESC(f71862fg_pin,
|
||||
"Watchdog f71862fg reset output pin configuration. Choose pin 56 or 63"
|
||||
" (default=" __MODULE_STRING(WATCHDOG_F71862FG_PIN)")");
|
||||
" (default=" __stringify(WATCHDOG_F71862FG_PIN)")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0444);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <sysdev/fsl_soc.h>
|
||||
|
||||
|
|
@ -70,7 +71,7 @@ static DEFINE_SPINLOCK(gef_wdt_spinlock);
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
|
||||
static int gef_wdt_toggle_wdc(int enabled_predicate, int field_shift)
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <linux/cs5535.h>
|
||||
|
||||
|
|
@ -34,13 +35,13 @@ static int timeout = WATCHDOG_TIMEOUT;
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1<= timeout <=131, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static struct platform_device *geodewdt_platform_device;
|
||||
static unsigned long wdt_flags;
|
||||
|
|
|
|||
|
|
@ -11,13 +11,14 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#define SOFT_TIMEOUT_MIN 1
|
||||
#define SOFT_TIMEOUT_DEF 60
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <linux/pci.h>
|
||||
#include <linux/pci_ids.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
#ifdef CONFIG_HPWDT_NMI_DECODING
|
||||
#include <asm/nmi.h>
|
||||
|
|
@ -432,7 +433,7 @@ MODULE_PARM_DESC(timeout, "Alias of soft_margin");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
module_param(kdumptimeout, int, 0444);
|
||||
MODULE_PARM_DESC(kdumptimeout, "Timeout applied for crash kernel transition in seconds");
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include <linux/ioport.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/* Module and version information */
|
||||
#define ESB_MODULE_NAME "i6300ESB timer"
|
||||
|
|
@ -74,19 +75,19 @@
|
|||
#define ESB_HEARTBEAT_MIN 1
|
||||
#define ESB_HEARTBEAT_MAX 2046
|
||||
#define ESB_HEARTBEAT_DEFAULT 30
|
||||
#define ESB_HEARTBEAT_RANGE __MODULE_STRING(ESB_HEARTBEAT_MIN) \
|
||||
"<heartbeat<" __MODULE_STRING(ESB_HEARTBEAT_MAX)
|
||||
#define ESB_HEARTBEAT_RANGE __stringify(ESB_HEARTBEAT_MIN) \
|
||||
"<heartbeat<" __stringify(ESB_HEARTBEAT_MAX)
|
||||
static int heartbeat; /* in seconds */
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat in seconds. (" ESB_HEARTBEAT_RANGE
|
||||
", default=" __MODULE_STRING(ESB_HEARTBEAT_DEFAULT) ")");
|
||||
", default=" __stringify(ESB_HEARTBEAT_DEFAULT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/* internal variables */
|
||||
struct esb_dev {
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
#include <linux/ioport.h> /* For io-port access */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/io.h> /* For inb/outb/... */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
#include <linux/platform_data/itco_wdt.h>
|
||||
#include <linux/mfd/intel_pmc_bxt.h>
|
||||
|
||||
|
|
@ -115,13 +116,13 @@ static int heartbeat = WATCHDOG_TIMEOUT; /* in seconds */
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog timeout in seconds. "
|
||||
"5..76 (TCO v1) or 3..614 (TCO v2), default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int turn_SMI_watchdog_clear_off = 1;
|
||||
module_param(turn_SMI_watchdog_clear_off, int, 0);
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
static struct platform_device *ibwdt_platform_device;
|
||||
|
|
@ -96,13 +97,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 0<= timeout <=30, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <linux/dmi.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
enum {
|
||||
|
|
@ -413,7 +414,7 @@ module_exit(ibmasr_exit);
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_DESCRIPTION("IBM Automatic Server Restart driver");
|
||||
MODULE_AUTHOR("Andrey Panin");
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/debugfs.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DRIVER_NAME "ie6xx_wdt"
|
||||
|
||||
|
|
@ -49,14 +50,14 @@ static unsigned int timeout = DEFAULT_TIME;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Default Watchdog timer setting ("
|
||||
__MODULE_STRING(DEFAULT_TIME) "s)."
|
||||
__stringify(DEFAULT_TIME) "s)."
|
||||
"The range is from 1 to 600");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static u8 resetmode = 0x10;
|
||||
module_param(resetmode, byte, 0);
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
/* registers */
|
||||
|
|
@ -71,12 +72,12 @@
|
|||
static int heartbeat;
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds "
|
||||
"(default=" __MODULE_STRING(PDC_WDT_DEF_TIMEOUT) ")");
|
||||
"(default=" __stringify(PDC_WDT_DEF_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct pdc_wdt_dev {
|
||||
struct watchdog_device wdt_dev;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DRIVER_NAME "imx2-wdt"
|
||||
|
|
@ -79,12 +80,12 @@ struct imx2_wdt_device {
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned timeout;
|
||||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
|
||||
__MODULE_STRING(IMX2_WDT_DEFAULT_TIME) ")");
|
||||
__stringify(IMX2_WDT_DEFAULT_TIME) ")");
|
||||
|
||||
static const struct watchdog_info imx2_wdt_info = {
|
||||
.identity = "imx2+ watchdog",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define WDOG_CS 0x0
|
||||
|
|
@ -51,7 +52,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0000);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct imx_wdt_hw_feature {
|
||||
bool prescaler_enable;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DEFAULT_TIMEOUT 60
|
||||
|
|
@ -39,7 +40,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0000);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct imx_sc_wdt_device {
|
||||
struct watchdog_device wdd;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/reboot.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <asm/sgi/mc.h>
|
||||
|
||||
static unsigned long indydog_alive;
|
||||
|
|
@ -33,7 +34,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static void indydog_start(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define INTEL_OC_WDT_TOV GENMASK(9, 0)
|
||||
|
|
@ -48,12 +49,12 @@ struct intel_oc_wdt {
|
|||
static int heartbeat;
|
||||
module_param(heartbeat, uint, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. (default="
|
||||
__MODULE_STRING(WDT_HEARTBEAT) ")");
|
||||
__stringify(WDT_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int intel_oc_wdt_start(struct watchdog_device *wdd)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/printk.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -105,13 +106,13 @@ static bool nowayout = DEFAULT_NOWAYOUT;
|
|||
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, default="
|
||||
__MODULE_STRING(DEFAULT_TIMEOUT));
|
||||
__stringify(DEFAULT_TIMEOUT));
|
||||
module_param(testmode, int, 0);
|
||||
MODULE_PARM_DESC(testmode, "Watchdog test mode (1 = no reboot), default="
|
||||
__MODULE_STRING(DEFAULT_TESTMODE));
|
||||
__stringify(DEFAULT_TESTMODE));
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started, default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT));
|
||||
__stringify(WATCHDOG_NOWAYOUT));
|
||||
|
||||
/* Superio Chip */
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <linux/err.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DEFAULT_HEARTBEAT 5
|
||||
#define MAX_HEARTBEAT 2048
|
||||
|
|
@ -27,14 +28,14 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned int heartbeat = DEFAULT_HEARTBEAT;
|
||||
module_param(heartbeat, uint, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat period in seconds from 1 to "
|
||||
__MODULE_STRING(MAX_HEARTBEAT) ", default "
|
||||
__MODULE_STRING(DEFAULT_HEARTBEAT));
|
||||
__stringify(MAX_HEARTBEAT) ", default "
|
||||
__stringify(DEFAULT_HEARTBEAT));
|
||||
|
||||
struct jz4740_wdt_drvdata {
|
||||
struct watchdog_device wdt;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
/* Non-secure watchdog register offsets */
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
static unsigned int timeout = WDT_TIMEOUT;
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout period in seconds (default = "
|
||||
__MODULE_STRING(WDT_TIMEOUT) ")");
|
||||
__stringify(WDT_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default = "
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct keembay_wdt {
|
||||
struct watchdog_device wdd;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <linux/uaccess.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/mfd/kempld.h>
|
||||
|
||||
#define KEMPLD_WDT_STAGE_TIMEOUT(x) (0x1b + (x) * 4)
|
||||
|
|
@ -85,19 +86,19 @@ static unsigned int timeout = DEFAULT_TIMEOUT;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (>=0, default="
|
||||
__MODULE_STRING(DEFAULT_TIMEOUT) ")");
|
||||
__stringify(DEFAULT_TIMEOUT) ")");
|
||||
|
||||
static unsigned int pretimeout = DEFAULT_PRETIMEOUT;
|
||||
module_param(pretimeout, uint, 0);
|
||||
MODULE_PARM_DESC(pretimeout,
|
||||
"Watchdog pretimeout in seconds. (>=0, default="
|
||||
__MODULE_STRING(DEFAULT_PRETIMEOUT) ")");
|
||||
__stringify(DEFAULT_PRETIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int kempld_wdt_set_stage_action(struct kempld_wdt_data *wdt_data,
|
||||
struct kempld_wdt_stage *stage,
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -48,13 +49,13 @@ static int timeout; /* in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1 <= timeout <= 255, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct se10_wdt {
|
||||
struct watchdog_device wdd;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define IOREGION_OFFSET 4 /* Use EC port 1 */
|
||||
|
|
@ -28,13 +29,13 @@ static int timeout; /* in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1 <= timeout <= 255, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#define LNV_SE30_NAME "lenovo-se30-wdt"
|
||||
#define LNV_SE30_ID 0x0110
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -37,13 +38,13 @@ static int timeout; /* in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1 <= timeout <= 255, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct se_30g2_60_wdt {
|
||||
struct watchdog_device wdd;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
/* Loongson Watchdog Register Definitions */
|
||||
|
|
@ -19,12 +20,12 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned int heartbeat;
|
||||
module_param(heartbeat, uint, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default="
|
||||
__MODULE_STRING(DEFAULT_HEARTBEAT) ")");
|
||||
__stringify(DEFAULT_HEARTBEAT) ")");
|
||||
|
||||
struct ls1x_wdt_pdata {
|
||||
u32 timer_offset;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
/* Registers */
|
||||
|
|
@ -41,12 +42,12 @@
|
|||
static int heartbeat;
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds (default="
|
||||
__MODULE_STRING(LPC18XX_WDT_DEF_TIMEOUT) ")");
|
||||
__stringify(LPC18XX_WDT_DEF_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct lpc18xx_wdt_dev {
|
||||
struct watchdog_device wdt_dev;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_wakeirq.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -355,7 +356,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(
|
||||
nowayout,
|
||||
"Watchdog cannot be stopped once started (default=" __MODULE_STRING(
|
||||
"Watchdog cannot be stopped once started (default=" __stringify(
|
||||
WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_AUTHOR("Zi-Yu Chen <zychennvt@gmail.com>");
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DEFAULT_HEARTBEAT 60
|
||||
#define MAX_HEARTBEAT 60
|
||||
|
|
@ -283,12 +284,12 @@ MODULE_DESCRIPTION("max63xx Watchdog Driver");
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat period in seconds from 1 to "
|
||||
__MODULE_STRING(MAX_HEARTBEAT) ", default "
|
||||
__MODULE_STRING(DEFAULT_HEARTBEAT));
|
||||
__stringify(MAX_HEARTBEAT) ", default "
|
||||
__stringify(DEFAULT_HEARTBEAT));
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
module_param(nodelay, int, 0);
|
||||
MODULE_PARM_DESC(nodelay,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
|
|
@ -255,7 +256,7 @@ MODULE_DESCRIPTION("Max77620 watchdog timer driver");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
|
||||
MODULE_AUTHOR("Luca Ceresoli <luca.ceresoli@bootlin.com>");
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/delay.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define NUM_GPIOS 6
|
||||
|
||||
|
|
@ -37,7 +38,7 @@ struct a21_wdt_drv {
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned int a21_wdt_get_bootstatus(struct a21_wdt_drv *drv)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/watchdog.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DEVNAME "menf21bmc_wdt"
|
||||
|
||||
|
|
@ -28,7 +29,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct menf21bmc_wdt {
|
||||
struct watchdog_device wdt;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/mcb.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
struct men_z069_drv {
|
||||
|
|
@ -29,7 +30,7 @@ struct men_z069_drv {
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int men_z069_wdt_start(struct watchdog_device *wdt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -31,12 +32,12 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned int timeout;
|
||||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds="
|
||||
__MODULE_STRING(DEFAULT_TIMEOUT) ")");
|
||||
__stringify(DEFAULT_TIMEOUT) ")");
|
||||
|
||||
struct meson_gxbb_wdt {
|
||||
void __iomem *reg_base;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -218,7 +219,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Carlo Caione <carlo@caione.org>");
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
#include <linux/timer.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/*
|
||||
* We have two types of cards that can be probed:
|
||||
|
|
@ -107,7 +108,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static void mixcomwd_ping(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/watchdog.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <sysdev/fsl_soc.h>
|
||||
|
||||
#define WATCHDOG_TIMEOUT 10
|
||||
|
|
@ -57,7 +58,7 @@ static u16 timeout;
|
|||
module_param(timeout, ushort, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (1<timeout<65535, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static bool reset = 1;
|
||||
module_param(reset, bool, 0);
|
||||
|
|
@ -67,7 +68,7 @@ MODULE_PARM_DESC(reset,
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static void mpc8xxx_wdt_keepalive(struct mpc8xxx_wdt_ddata *ddata)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/mfd/syscon.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define SYSC_RSTSTAT 0x38
|
||||
#define WDT_RST_CAUSE BIT(1)
|
||||
|
|
@ -41,7 +42,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static inline void rt_wdt_w32(void __iomem *base, unsigned int reg, u32 val)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define WDT_MAX_TIMEOUT 31
|
||||
#define WDT_MIN_TIMEOUT 2
|
||||
|
|
@ -620,7 +621,7 @@ MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Matthias Brugger <matthias.bgg@gmail.com>");
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DEVICE_NAME "nct6694-wdt"
|
||||
|
|
@ -50,7 +51,7 @@ MODULE_PARM_DESC(pretimeout, "Watchdog pre-timeout in seconds");
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
enum {
|
||||
NCT6694_ACTION_NONE = 0,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define NIWD_CONTROL 0x01
|
||||
|
|
@ -46,13 +47,13 @@ static unsigned int timeout;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (default="
|
||||
__MODULE_STRING(NIWD_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(NIWD_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
static int nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, int, S_IRUGO);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static void ni903x_start(struct ni903x_wdt *wdt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -34,13 +35,13 @@ static unsigned int timeout;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (default="
|
||||
__MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(WDT_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started. (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct nic7018_wdt {
|
||||
u16 io_base;
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "nv_tco.h"
|
||||
|
||||
|
|
@ -55,12 +56,12 @@ static struct platform_device *nv_tco_platform_device;
|
|||
static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<heartbeat<39, "
|
||||
"default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
|
||||
"default=" __stringify(WATCHDOG_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"
|
||||
" (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
" (default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Some TCO specific functions
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
#include <linux/cpu.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/irqdomain.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <asm/mipsregs.h>
|
||||
#include <asm/uasm.h>
|
||||
|
|
@ -93,13 +94,13 @@ static int heartbeat = WD_TIMO;
|
|||
module_param(heartbeat, int, 0444);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat in seconds. (0 < heartbeat, default="
|
||||
__MODULE_STRING(WD_TIMO) ")");
|
||||
__stringify(WD_TIMO) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0444);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int disable;
|
||||
module_param(disable, int, 0444);
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/platform_data/omap-wd-timer.h>
|
||||
|
||||
#include "omap_wdt.h"
|
||||
|
|
@ -45,7 +46,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned timer_margin;
|
||||
module_param(timer_margin, uint, 0);
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/err.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/* RSTOUT mask register physical address for Orion5x, Kirkwood and Dove */
|
||||
#define ORION_RSTOUT_MASK_OFFSET 0x20108
|
||||
|
|
@ -687,7 +688,7 @@ MODULE_PARM_DESC(heartbeat, "Initial watchdog heartbeat in seconds");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:orion_wdt");
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
/* #define DEBUG 1 */
|
||||
|
|
@ -577,15 +578,15 @@ MODULE_LICENSE("GPL");
|
|||
|
||||
module_param_hw(io, int, ioport, 0);
|
||||
MODULE_PARM_DESC(io, MODNAME " I/O port (default: "
|
||||
__MODULE_STRING(IO_DEFAULT) ").");
|
||||
__stringify(IO_DEFAULT) ").");
|
||||
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in minutes (default="
|
||||
__MODULE_STRING(DEFAULT_TIMEOUT) ").");
|
||||
__stringify(DEFAULT_TIMEOUT) ").");
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/io.h> /* For inb/outb/... */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
|
||||
/* Module and version information */
|
||||
#define WATCHDOG_VERSION "1.20"
|
||||
|
|
@ -203,13 +204,13 @@ static int heartbeat = WATCHDOG_HEARTBEAT;
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. "
|
||||
"(2 <= heartbeat <= 7200 or 0=delay-time from dip-switches, default="
|
||||
__MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
|
||||
__stringify(WATCHDOG_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Internal functions
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@
|
|||
#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/io.h> /* For inb/outb/... */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
|
||||
/* Module and version information */
|
||||
#define WATCHDOG_VERSION "1.03"
|
||||
|
|
@ -140,12 +141,12 @@ static int heartbeat = WATCHDOG_HEARTBEAT;
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. "
|
||||
"(0<heartbeat<65536 or 0=delay-time from dip-switches, default="
|
||||
__MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
|
||||
__stringify(WATCHDOG_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Internal functions
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
#include <linux/mutex.h> /* For mutex locking */
|
||||
#include <linux/hid.h> /* For HID_REQ_SET_REPORT & HID_DT_REPORT */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
|
||||
|
||||
/* Module and Version Information */
|
||||
|
|
@ -57,12 +58,12 @@ static int heartbeat = WATCHDOG_HEARTBEAT;
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. "
|
||||
"(0<heartbeat<65536 or 0=delay-time from dip-switches, default="
|
||||
__MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
|
||||
__stringify(WATCHDOG_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/* The vendor and product id's for the USB-PC Watchdog card */
|
||||
#define USB_PCWD_VENDOR_ID 0x0c98
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define DRV_NAME "PIKA-WDT"
|
||||
|
||||
|
|
@ -39,12 +40,12 @@
|
|||
static int heartbeat = WDT_HEARTBEAT;
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. "
|
||||
"(default = " __MODULE_STRING(WDT_HEARTBEAT) ")");
|
||||
"(default = " __stringify(WDT_HEARTBEAT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
|
||||
"(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
"(default=" __stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static struct {
|
||||
void __iomem *fpga;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include <linux/of.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/* WatchDog Timer - Chapter 23 Page 207 */
|
||||
|
||||
|
|
@ -237,8 +238,8 @@ MODULE_DESCRIPTION("PNX4008 Watchdog Driver");
|
|||
module_param(heartbeat, uint, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat period in seconds from 1 to "
|
||||
__MODULE_STRING(MAX_HEARTBEAT) ", default "
|
||||
__MODULE_STRING(DEFAULT_HEARTBEAT));
|
||||
__stringify(MAX_HEARTBEAT) ", default "
|
||||
__stringify(DEFAULT_HEARTBEAT));
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/time64.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <asm/papr-watchdog.h>
|
||||
|
|
@ -26,18 +27,18 @@ static const unsigned long pseries_wdt_action[] = {
|
|||
static unsigned int action = WATCHDOG_ACTION;
|
||||
module_param(action, uint, 0444);
|
||||
MODULE_PARM_DESC(action, "Action taken when watchdog expires (default="
|
||||
__MODULE_STRING(WATCHDOG_ACTION) ")");
|
||||
__stringify(WATCHDOG_ACTION) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0444);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#define WATCHDOG_TIMEOUT 60
|
||||
static unsigned int timeout = WATCHDOG_TIMEOUT;
|
||||
module_param(timeout, uint, 0444);
|
||||
MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds (default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
struct pseries_wdt {
|
||||
struct watchdog_device wd;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/io.h> /* For devm_ioremap */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
|
||||
#include <asm/mach-rc32434/integ.h> /* For the Watchdog registers */
|
||||
|
||||
|
|
@ -57,12 +58,12 @@ extern unsigned int idt_cpu_freq;
|
|||
static int timeout = WATCHDOG_TIMEOUT;
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout value, in seconds (default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/* apply or and nand masks to data read from addr and write back */
|
||||
#define SET_BITS(addr, or, nand) \
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/smp.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/sys_soc.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ static const unsigned int clk_divs[] = { 1, 4, 16, 32, 64, 128, 1024, 4096 };
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct rwdt_priv {
|
||||
void __iomem *base;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include <linux/mfd/rn5t618.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DRIVER_NAME "rn5t618-wdt"
|
||||
|
|
@ -21,7 +22,7 @@ MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds");
|
|||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
struct rn5t618_wdt {
|
||||
struct watchdog_device wdt_dev;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/watchdog.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <asm/mach-ralink/ralink_regs.h>
|
||||
|
||||
|
|
@ -51,7 +52,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static inline void rt_wdt_w32(void __iomem *base, unsigned int reg, u32 val)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/of_reserved_mem.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -414,8 +415,8 @@ MODULE_DESCRIPTION("K3 RTI Watchdog Driver");
|
|||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat period in seconds from 1 to "
|
||||
__MODULE_STRING(MAX_HEARTBEAT) ", default "
|
||||
__MODULE_STRING(DEFAULT_HEARTBEAT));
|
||||
__stringify(MAX_HEARTBEAT) ", default "
|
||||
__stringify(DEFAULT_HEARTBEAT));
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:rti-wdt");
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_domain.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/reset.h>
|
||||
#include <linux/units.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
|
@ -41,7 +42,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
enum rz_wdt_type {
|
||||
WDT_RZG2L,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/reset.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/units.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
|
|
@ -48,7 +49,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
enum rzv2h_wdt_count_source {
|
||||
COUNT_SOURCE_LOCO,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#define DRIVER_NAME "s32g-swt"
|
||||
|
|
@ -42,12 +43,12 @@ struct s32g_wdt_device {
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static unsigned int timeout_param = S32G_WDT_DEFAULT_TIMEOUT;
|
||||
module_param(timeout_param, uint, 0);
|
||||
MODULE_PARM_DESC(timeout_param, "Watchdog timeout in seconds (default="
|
||||
__MODULE_STRING(S32G_WDT_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(S32G_WDT_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
static bool early_enable;
|
||||
module_param(early_enable, bool, 0);
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#include <linux/regmap.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/math64.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define S3C2410_WTCON 0x00
|
||||
#define S3C2410_WTDAT 0x04
|
||||
|
|
@ -154,12 +155,12 @@ module_param(nowayout, bool, 0);
|
|||
module_param(soft_noboot, int, 0);
|
||||
|
||||
MODULE_PARM_DESC(tmr_margin, "Watchdog tmr_margin in seconds. (default="
|
||||
__MODULE_STRING(S3C2410_WATCHDOG_DEFAULT_TIME) ")");
|
||||
__stringify(S3C2410_WATCHDOG_DEFAULT_TIME) ")");
|
||||
MODULE_PARM_DESC(tmr_atboot,
|
||||
"Watchdog is started at boot time if set to 1, default="
|
||||
__MODULE_STRING(S3C2410_WATCHDOG_ATBOOT));
|
||||
__stringify(S3C2410_WATCHDOG_ATBOOT));
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
MODULE_PARM_DESC(soft_noboot, "Watchdog action, set to 1 to ignore reboots, 0 to reboot (default 0)");
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
#include <linux/of_irq.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
#include "at91sam9_wdt.h"
|
||||
|
|
@ -42,12 +43,12 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(wdt_timeout, int, 0);
|
||||
MODULE_PARM_DESC(wdt_timeout,
|
||||
"Watchdog timeout in seconds. (default = "
|
||||
__MODULE_STRING(WDT_DEFAULT_TIMEOUT) ")");
|
||||
__stringify(WDT_DEFAULT_TIMEOUT) ")");
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static inline bool wdt_enabled(struct sama5d4_wdt *wdt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
#define OUR_NAME "sbc60xxwdt"
|
||||
|
|
@ -98,13 +99,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds, multiplied by HZ to
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (1<=timeout<=3600, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ")");
|
||||
__stringify(WATCHDOG_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static void wdt_timer_ping(struct timer_list *);
|
||||
static DEFINE_TIMER(timer, wdt_timer_ping);
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define SBC7240_ENABLE_PORT 0x443
|
||||
#define SBC7240_DISABLE_PORT 0x043
|
||||
|
|
@ -34,8 +35,8 @@
|
|||
static int timeout = SBC7240_TIMEOUT; /* in seconds */
|
||||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds. (1<=timeout<="
|
||||
__MODULE_STRING(SBC7240_MAX_TIMEOUT) ", default="
|
||||
__MODULE_STRING(SBC7240_TIMEOUT) ")");
|
||||
__stringify(SBC7240_MAX_TIMEOUT) ", default="
|
||||
__stringify(SBC7240_TIMEOUT) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
static unsigned long sbc8360_is_open;
|
||||
|
|
@ -199,7 +200,7 @@ MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))");
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Kernel methods.
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#include <linux/ioport.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
static int epx_c3_alive;
|
||||
|
||||
|
|
@ -33,7 +34,7 @@ static int epx_c3_alive;
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
#define EPXC3_WATCHDOG_CTL_REG 0x1ee /* write 1 to enable, 0 to disable */
|
||||
#define EPXC3_WATCHDOG_PET_REG 0x1ef /* write anything to pet once enabled */
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <asm/arch_timer.h>
|
||||
|
|
@ -103,7 +104,7 @@ static unsigned int timeout;
|
|||
module_param(timeout, uint, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. (>=0, default="
|
||||
__MODULE_STRING(DEFAULT_TIMEOUT) ")");
|
||||
__stringify(DEFAULT_TIMEOUT) ")");
|
||||
|
||||
/*
|
||||
* action refers to action taken when watchdog gets WS0
|
||||
|
|
@ -120,7 +121,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static bool early_enable;
|
||||
module_param(early_enable, bool, 0);
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
#include <linux/semaphore.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define SC1200_MODULE_VER "build 20020303"
|
||||
#define SC1200_MODULE_NAME "sc1200wdt"
|
||||
|
|
@ -92,7 +93,7 @@ static bool nowayout = WATCHDOG_NOWAYOUT;
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
#include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */
|
||||
#include <linux/uaccess.h> /* For copy_to_user/put_user/... */
|
||||
#include <linux/io.h> /* For inb/outb/... */
|
||||
#include <linux/stringify.h> /* For __stringify */
|
||||
|
||||
/* Module and version information */
|
||||
#define DRV_NAME "sch311x_wdt"
|
||||
|
|
@ -68,13 +69,13 @@ static int timeout = WATCHDOG_TIMEOUT; /* in seconds */
|
|||
module_param(timeout, int, 0);
|
||||
MODULE_PARM_DESC(timeout,
|
||||
"Watchdog timeout in seconds. 1<= timeout <=15300, default="
|
||||
__MODULE_STRING(WATCHDOG_TIMEOUT) ".");
|
||||
__stringify(WATCHDOG_TIMEOUT) ".");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
/*
|
||||
* Super-IO functions
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <asm/watchdog.h>
|
||||
|
||||
#define DRV_NAME "sh-wdt"
|
||||
|
|
@ -329,14 +330,14 @@ MODULE_ALIAS("platform:" DRV_NAME);
|
|||
module_param(clock_division_ratio, int, 0);
|
||||
MODULE_PARM_DESC(clock_division_ratio,
|
||||
"Clock division ratio. Valid ranges are from 0x5 (1.31ms) "
|
||||
"to 0x7 (5.25ms). (default=" __MODULE_STRING(WTCSR_CKS_4096) ")");
|
||||
"to 0x7 (5.25ms). (default=" __stringify(WTCSR_CKS_4096) ")");
|
||||
|
||||
module_param(heartbeat, int, 0);
|
||||
MODULE_PARM_DESC(heartbeat,
|
||||
"Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default="
|
||||
__MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
|
||||
__stringify(WATCHDOG_HEARTBEAT) ")");
|
||||
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/sizes.h>
|
||||
#include <linux/util_macros.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define WD_ENABLE_IOADR 0x62
|
||||
#define WD_TRIGGER_IOADR 0x66
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0000);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static struct resource gp_status_reg_227e_res =
|
||||
DEFINE_RES_IO_NAMED(GP_STATUS_REG_227E, SZ_1, KBUILD_MODNAME);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/regmap.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
||||
/*
|
||||
|
|
@ -30,7 +31,7 @@
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int timeout;
|
||||
module_param(timeout, int, 0);
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
#include <linux/spinlock.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
|
||||
/* enable support for minutes as units? */
|
||||
|
|
@ -611,4 +612,4 @@ MODULE_PARM_DESC(timeout, "range is 1-255 units, default is 60");
|
|||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
|
@ -33,13 +34,13 @@ static unsigned int soft_margin = TIMER_MARGIN; /* in seconds */
|
|||
module_param(soft_margin, uint, 0);
|
||||
MODULE_PARM_DESC(soft_margin,
|
||||
"Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default="
|
||||
__MODULE_STRING(TIMER_MARGIN) ")");
|
||||
__stringify(TIMER_MARGIN) ")");
|
||||
|
||||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout,
|
||||
"Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int soft_noboot;
|
||||
module_param(soft_noboot, int, 0);
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user