Skip to content

Commit ee86a03

Browse files
TranslucentSabreWim Van Sebroeck
authored andcommitted
watchdog: booke_wdt: Add common nowayout parameter driver
Add the common "nowayout" parameter to booke_wdt to make this behavior selectable at runtime and to make the implementation more consistent with many other watchdog drivers. Signed-off-by: Timothy Myers <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> [groeck: Dropped version data, cleaned up subject line] Link: https://lore.kernel.org/r/CH2PR19MB359059AA5C8917D8D24633FF9D690@CH2PR19MB3590.namprd19.prod.outlook.com Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 55a1b87 commit ee86a03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/watchdog/booke_wdt.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ static bool booke_wdt_enabled;
3939
module_param(booke_wdt_enabled, bool, 0);
4040
static int booke_wdt_period = CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT;
4141
module_param(booke_wdt_period, int, 0);
42+
static bool nowayout = WATCHDOG_NOWAYOUT;
43+
module_param(nowayout, bool, 0);
44+
MODULE_PARM_DESC(nowayout,
45+
"Watchdog cannot be stopped once started (default="
46+
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
4247

4348
#ifdef CONFIG_PPC_FSL_BOOK3E
4449

@@ -215,7 +220,6 @@ static void __exit booke_wdt_exit(void)
215220
static int __init booke_wdt_init(void)
216221
{
217222
int ret = 0;
218-
bool nowayout = WATCHDOG_NOWAYOUT;
219223

220224
pr_info("powerpc book-e watchdog driver loaded\n");
221225
booke_wdt_info.firmware_version = cur_cpu_spec->pvr_value;

0 commit comments

Comments
 (0)