1b7e04f8cSWim Van Sebroeck /* 2b1fa888eSPaul Mundt * drivers/watchdog/shwdt.c 3b7e04f8cSWim Van Sebroeck * 4b7e04f8cSWim Van Sebroeck * Watchdog driver for integrated watchdog in the SuperH processors. 5b7e04f8cSWim Van Sebroeck * 640968126SPaul Mundt * Copyright (C) 2001 - 2012 Paul Mundt <lethal@linux-sh.org> 7b7e04f8cSWim Van Sebroeck * 8b7e04f8cSWim Van Sebroeck * This program is free software; you can redistribute it and/or modify it 9b7e04f8cSWim Van Sebroeck * under the terms of the GNU General Public License as published by the 10b7e04f8cSWim Van Sebroeck * Free Software Foundation; either version 2 of the License, or (at your 11b7e04f8cSWim Van Sebroeck * option) any later version. 12b7e04f8cSWim Van Sebroeck * 13b7e04f8cSWim Van Sebroeck * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com> 14b7e04f8cSWim Van Sebroeck * Added nowayout module option to override CONFIG_WATCHDOG_NOWAYOUT 15b7e04f8cSWim Van Sebroeck * 16b7e04f8cSWim Van Sebroeck * 19-Apr-2002 Rob Radez <rob@osinvestor.com> 17b7e04f8cSWim Van Sebroeck * Added expect close support, made emulated timeout runtime changeable 18b7e04f8cSWim Van Sebroeck * general cleanups, add some ioctls 19b7e04f8cSWim Van Sebroeck */ 2027c766aaSJoe Perches 2127c766aaSJoe Perches #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 2227c766aaSJoe Perches 23b7e04f8cSWim Van Sebroeck #include <linux/module.h> 24b7e04f8cSWim Van Sebroeck #include <linux/moduleparam.h> 258f5585ecSPaul Mundt #include <linux/platform_device.h> 26b7e04f8cSWim Van Sebroeck #include <linux/init.h> 27b7e04f8cSWim Van Sebroeck #include <linux/types.h> 28f9fb360cSPaul Mundt #include <linux/spinlock.h> 29b7e04f8cSWim Van Sebroeck #include <linux/watchdog.h> 308c013d96SPaul Mundt #include <linux/pm_runtime.h> 31b7e04f8cSWim Van Sebroeck #include <linux/fs.h> 32b7e04f8cSWim Van Sebroeck #include <linux/mm.h> 338f5585ecSPaul Mundt #include <linux/slab.h> 3470b814ecSAlan Cox #include <linux/io.h> 359ea64046SPaul Mundt #include <linux/clk.h> 366330c707SSachin Kamat #include <linux/err.h> 3758cf4198SAdrian Bunk #include <asm/watchdog.h> 38b7e04f8cSWim Van Sebroeck 398f5585ecSPaul Mundt #define DRV_NAME "sh-wdt" 40b7e04f8cSWim Van Sebroeck 41b7e04f8cSWim Van Sebroeck /* 42b7e04f8cSWim Van Sebroeck * Default clock division ratio is 5.25 msecs. For an additional table of 43b7e04f8cSWim Van Sebroeck * values, consult the asm-sh/watchdog.h. Overload this at module load 44b7e04f8cSWim Van Sebroeck * time. 45b7e04f8cSWim Van Sebroeck * 46b7e04f8cSWim Van Sebroeck * In order for this to work reliably we need to have HZ set to 1000 or 47b7e04f8cSWim Van Sebroeck * something quite higher than 100 (or we need a proper high-res timer 48b7e04f8cSWim Van Sebroeck * implementation that will deal with this properly), otherwise the 10ms 49b7e04f8cSWim Van Sebroeck * resolution of a jiffy is enough to trigger the overflow. For things like 50b7e04f8cSWim Van Sebroeck * the SH-4 and SH-5, this isn't necessarily that big of a problem, though 51b7e04f8cSWim Van Sebroeck * for the SH-2 and SH-3, this isn't recommended unless the WDT is absolutely 52b7e04f8cSWim Van Sebroeck * necssary. 53b7e04f8cSWim Van Sebroeck * 54b7e04f8cSWim Van Sebroeck * As a result of this timing problem, the only modes that are particularly 5525985edcSLucas De Marchi * feasible are the 4096 and the 2048 divisors, which yield 5.25 and 2.62ms 56b7e04f8cSWim Van Sebroeck * overflow periods respectively. 57b7e04f8cSWim Van Sebroeck * 58b7e04f8cSWim Van Sebroeck * Also, since we can't really expect userspace to be responsive enough 59ee0fc097SJoe Perches * before the overflow happens, we maintain two separate timers .. One in 60b7e04f8cSWim Van Sebroeck * the kernel for clearing out WOVF every 2ms or so (again, this depends on 61b7e04f8cSWim Van Sebroeck * HZ == 1000), and another for monitoring userspace writes to the WDT device. 62b7e04f8cSWim Van Sebroeck * 63b7e04f8cSWim Van Sebroeck * As such, we currently use a configurable heartbeat interval which defaults 64b7e04f8cSWim Van Sebroeck * to 30s. In this case, the userspace daemon is only responsible for periodic 65b7e04f8cSWim Van Sebroeck * writes to the device before the next heartbeat is scheduled. If the daemon 66b7e04f8cSWim Van Sebroeck * misses its deadline, the kernel timer will allow the WDT to overflow. 67b7e04f8cSWim Van Sebroeck */ 68b7e04f8cSWim Van Sebroeck static int clock_division_ratio = WTCSR_CKS_4096; 69bea19066SDavid Engraf #define next_ping_period(cks) (jiffies + msecs_to_jiffies(cks - 4)) 70b7e04f8cSWim Van Sebroeck 71b7e04f8cSWim Van Sebroeck #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */ 72b7e04f8cSWim Van Sebroeck static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ 7386a1e189SWim Van Sebroeck static bool nowayout = WATCHDOG_NOWAYOUT; 748f5585ecSPaul Mundt static unsigned long next_heartbeat; 75b7e04f8cSWim Van Sebroeck 768f5585ecSPaul Mundt struct sh_wdt { 778f5585ecSPaul Mundt void __iomem *base; 788f5585ecSPaul Mundt struct device *dev; 799ea64046SPaul Mundt struct clk *clk; 80f9fb360cSPaul Mundt spinlock_t lock; 818f5585ecSPaul Mundt 828f5585ecSPaul Mundt struct timer_list timer; 838f5585ecSPaul Mundt }; 848f5585ecSPaul Mundt 851950f499SPaul Mundt static int sh_wdt_start(struct watchdog_device *wdt_dev) 86b7e04f8cSWim Van Sebroeck { 871950f499SPaul Mundt struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); 8870b814ecSAlan Cox unsigned long flags; 898f5585ecSPaul Mundt u8 csr; 9070b814ecSAlan Cox 918c013d96SPaul Mundt pm_runtime_get_sync(wdt->dev); 92d42c9744SPaul Mundt clk_enable(wdt->clk); 938c013d96SPaul Mundt 94f9fb360cSPaul Mundt spin_lock_irqsave(&wdt->lock, flags); 95b7e04f8cSWim Van Sebroeck 96b7e04f8cSWim Van Sebroeck next_heartbeat = jiffies + (heartbeat * HZ); 978f5585ecSPaul Mundt mod_timer(&wdt->timer, next_ping_period(clock_division_ratio)); 98b7e04f8cSWim Van Sebroeck 99b7e04f8cSWim Van Sebroeck csr = sh_wdt_read_csr(); 100b7e04f8cSWim Van Sebroeck csr |= WTCSR_WT | clock_division_ratio; 101b7e04f8cSWim Van Sebroeck sh_wdt_write_csr(csr); 102b7e04f8cSWim Van Sebroeck 103b7e04f8cSWim Van Sebroeck sh_wdt_write_cnt(0); 104b7e04f8cSWim Van Sebroeck 105b7e04f8cSWim Van Sebroeck /* 106b7e04f8cSWim Van Sebroeck * These processors have a bit of an inconsistent initialization 107b7e04f8cSWim Van Sebroeck * process.. starting with SH-3, RSTS was moved to WTCSR, and the 108b7e04f8cSWim Van Sebroeck * RSTCSR register was removed. 109b7e04f8cSWim Van Sebroeck * 110b7e04f8cSWim Van Sebroeck * On the SH-2 however, in addition with bits being in different 111b7e04f8cSWim Van Sebroeck * locations, we must deal with RSTCSR outright.. 112b7e04f8cSWim Van Sebroeck */ 113b7e04f8cSWim Van Sebroeck csr = sh_wdt_read_csr(); 114b7e04f8cSWim Van Sebroeck csr |= WTCSR_TME; 115b7e04f8cSWim Van Sebroeck csr &= ~WTCSR_RSTS; 116b7e04f8cSWim Van Sebroeck sh_wdt_write_csr(csr); 117b7e04f8cSWim Van Sebroeck 118b7e04f8cSWim Van Sebroeck #ifdef CONFIG_CPU_SH2 119b7e04f8cSWim Van Sebroeck csr = sh_wdt_read_rstcsr(); 120b7e04f8cSWim Van Sebroeck csr &= ~RSTCSR_RSTS; 121b7e04f8cSWim Van Sebroeck sh_wdt_write_rstcsr(csr); 122b7e04f8cSWim Van Sebroeck #endif 123f9fb360cSPaul Mundt spin_unlock_irqrestore(&wdt->lock, flags); 1241950f499SPaul Mundt 1251950f499SPaul Mundt return 0; 126b7e04f8cSWim Van Sebroeck } 127b7e04f8cSWim Van Sebroeck 1281950f499SPaul Mundt static int sh_wdt_stop(struct watchdog_device *wdt_dev) 129b7e04f8cSWim Van Sebroeck { 1301950f499SPaul Mundt struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); 13170b814ecSAlan Cox unsigned long flags; 1328f5585ecSPaul Mundt u8 csr; 13370b814ecSAlan Cox 134f9fb360cSPaul Mundt spin_lock_irqsave(&wdt->lock, flags); 135b7e04f8cSWim Van Sebroeck 1368f5585ecSPaul Mundt del_timer(&wdt->timer); 137b7e04f8cSWim Van Sebroeck 138b7e04f8cSWim Van Sebroeck csr = sh_wdt_read_csr(); 139b7e04f8cSWim Van Sebroeck csr &= ~WTCSR_TME; 140b7e04f8cSWim Van Sebroeck sh_wdt_write_csr(csr); 1418f5585ecSPaul Mundt 142f9fb360cSPaul Mundt spin_unlock_irqrestore(&wdt->lock, flags); 1431950f499SPaul Mundt 144d42c9744SPaul Mundt clk_disable(wdt->clk); 1458c013d96SPaul Mundt pm_runtime_put_sync(wdt->dev); 1468c013d96SPaul Mundt 1471950f499SPaul Mundt return 0; 148b7e04f8cSWim Van Sebroeck } 149b7e04f8cSWim Van Sebroeck 1501950f499SPaul Mundt static int sh_wdt_keepalive(struct watchdog_device *wdt_dev) 151b7e04f8cSWim Van Sebroeck { 152f9fb360cSPaul Mundt struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); 15370b814ecSAlan Cox unsigned long flags; 15470b814ecSAlan Cox 155f9fb360cSPaul Mundt spin_lock_irqsave(&wdt->lock, flags); 156b7e04f8cSWim Van Sebroeck next_heartbeat = jiffies + (heartbeat * HZ); 157f9fb360cSPaul Mundt spin_unlock_irqrestore(&wdt->lock, flags); 1581950f499SPaul Mundt 1591950f499SPaul Mundt return 0; 160b7e04f8cSWim Van Sebroeck } 161b7e04f8cSWim Van Sebroeck 1621950f499SPaul Mundt static int sh_wdt_set_heartbeat(struct watchdog_device *wdt_dev, unsigned t) 163b7e04f8cSWim Van Sebroeck { 164f9fb360cSPaul Mundt struct sh_wdt *wdt = watchdog_get_drvdata(wdt_dev); 16570b814ecSAlan Cox unsigned long flags; 16670b814ecSAlan Cox 16770b814ecSAlan Cox if (unlikely(t < 1 || t > 3600)) /* arbitrary upper limit */ 168b7e04f8cSWim Van Sebroeck return -EINVAL; 169b7e04f8cSWim Van Sebroeck 170f9fb360cSPaul Mundt spin_lock_irqsave(&wdt->lock, flags); 171b7e04f8cSWim Van Sebroeck heartbeat = t; 1721950f499SPaul Mundt wdt_dev->timeout = t; 173f9fb360cSPaul Mundt spin_unlock_irqrestore(&wdt->lock, flags); 1741950f499SPaul Mundt 175b7e04f8cSWim Van Sebroeck return 0; 176b7e04f8cSWim Van Sebroeck } 177b7e04f8cSWim Van Sebroeck 178e99e88a9SKees Cook static void sh_wdt_ping(struct timer_list *t) 179b7e04f8cSWim Van Sebroeck { 180e99e88a9SKees Cook struct sh_wdt *wdt = from_timer(wdt, t, timer); 18170b814ecSAlan Cox unsigned long flags; 18270b814ecSAlan Cox 183f9fb360cSPaul Mundt spin_lock_irqsave(&wdt->lock, flags); 184b7e04f8cSWim Van Sebroeck if (time_before(jiffies, next_heartbeat)) { 1858f5585ecSPaul Mundt u8 csr; 186b7e04f8cSWim Van Sebroeck 187b7e04f8cSWim Van Sebroeck csr = sh_wdt_read_csr(); 188b7e04f8cSWim Van Sebroeck csr &= ~WTCSR_IOVF; 189b7e04f8cSWim Van Sebroeck sh_wdt_write_csr(csr); 190b7e04f8cSWim Van Sebroeck 191b7e04f8cSWim Van Sebroeck sh_wdt_write_cnt(0); 192b7e04f8cSWim Van Sebroeck 1938f5585ecSPaul Mundt mod_timer(&wdt->timer, next_ping_period(clock_division_ratio)); 194b7e04f8cSWim Van Sebroeck } else 1958f5585ecSPaul Mundt dev_warn(wdt->dev, "Heartbeat lost! Will not ping " 196b7e04f8cSWim Van Sebroeck "the watchdog\n"); 197f9fb360cSPaul Mundt spin_unlock_irqrestore(&wdt->lock, flags); 198b7e04f8cSWim Van Sebroeck } 199b7e04f8cSWim Van Sebroeck 20070b814ecSAlan Cox static const struct watchdog_info sh_wdt_info = { 201b7e04f8cSWim Van Sebroeck .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | 202b7e04f8cSWim Van Sebroeck WDIOF_MAGICCLOSE, 203b7e04f8cSWim Van Sebroeck .firmware_version = 1, 204b7e04f8cSWim Van Sebroeck .identity = "SH WDT", 205b7e04f8cSWim Van Sebroeck }; 206b7e04f8cSWim Van Sebroeck 2071950f499SPaul Mundt static const struct watchdog_ops sh_wdt_ops = { 2081950f499SPaul Mundt .owner = THIS_MODULE, 2091950f499SPaul Mundt .start = sh_wdt_start, 2101950f499SPaul Mundt .stop = sh_wdt_stop, 2111950f499SPaul Mundt .ping = sh_wdt_keepalive, 2121950f499SPaul Mundt .set_timeout = sh_wdt_set_heartbeat, 2131950f499SPaul Mundt }; 2141950f499SPaul Mundt 2151950f499SPaul Mundt static struct watchdog_device sh_wdt_dev = { 2161950f499SPaul Mundt .info = &sh_wdt_info, 2171950f499SPaul Mundt .ops = &sh_wdt_ops, 218b7e04f8cSWim Van Sebroeck }; 219b7e04f8cSWim Van Sebroeck 2202d991a16SBill Pemberton static int sh_wdt_probe(struct platform_device *pdev) 2218f5585ecSPaul Mundt { 2228f5585ecSPaul Mundt struct sh_wdt *wdt; 2238f5585ecSPaul Mundt int rc; 2248f5585ecSPaul Mundt 2258f5585ecSPaul Mundt /* 2268f5585ecSPaul Mundt * As this driver only covers the global watchdog case, reject 2278f5585ecSPaul Mundt * any attempts to register per-CPU watchdogs. 2288f5585ecSPaul Mundt */ 2298f5585ecSPaul Mundt if (pdev->id != -1) 2308f5585ecSPaul Mundt return -EINVAL; 2318f5585ecSPaul Mundt 2328f5585ecSPaul Mundt wdt = devm_kzalloc(&pdev->dev, sizeof(struct sh_wdt), GFP_KERNEL); 2339ea64046SPaul Mundt if (unlikely(!wdt)) 2349ea64046SPaul Mundt return -ENOMEM; 2358f5585ecSPaul Mundt 2368f5585ecSPaul Mundt wdt->dev = &pdev->dev; 2378f5585ecSPaul Mundt 2382f7b9b48SJingoo Han wdt->clk = devm_clk_get(&pdev->dev, NULL); 2399ea64046SPaul Mundt if (IS_ERR(wdt->clk)) { 2409ea64046SPaul Mundt /* 2419ea64046SPaul Mundt * Clock framework support is optional, continue on 2429ea64046SPaul Mundt * anyways if we don't find a matching clock. 2439ea64046SPaul Mundt */ 2449ea64046SPaul Mundt wdt->clk = NULL; 2459ea64046SPaul Mundt } 2469ea64046SPaul Mundt 247*0f0a6a28SGuenter Roeck wdt->base = devm_platform_ioremap_resource(pdev, 0); 2482f7b9b48SJingoo Han if (IS_ERR(wdt->base)) 2492f7b9b48SJingoo Han return PTR_ERR(wdt->base); 2509ea64046SPaul Mundt 251f9fb360cSPaul Mundt watchdog_set_nowayout(&sh_wdt_dev, nowayout); 252f9fb360cSPaul Mundt watchdog_set_drvdata(&sh_wdt_dev, wdt); 2536551881cSPratyush Anand sh_wdt_dev.parent = &pdev->dev; 254f9fb360cSPaul Mundt 255f9fb360cSPaul Mundt spin_lock_init(&wdt->lock); 256f9fb360cSPaul Mundt 2571950f499SPaul Mundt rc = sh_wdt_set_heartbeat(&sh_wdt_dev, heartbeat); 2588f5585ecSPaul Mundt if (unlikely(rc)) { 2591950f499SPaul Mundt /* Default timeout if invalid */ 2601950f499SPaul Mundt sh_wdt_set_heartbeat(&sh_wdt_dev, WATCHDOG_HEARTBEAT); 2611950f499SPaul Mundt 2621950f499SPaul Mundt dev_warn(&pdev->dev, 2631950f499SPaul Mundt "heartbeat value must be 1<=x<=3600, using %d\n", 2641950f499SPaul Mundt sh_wdt_dev.timeout); 2651950f499SPaul Mundt } 2661950f499SPaul Mundt 2671950f499SPaul Mundt dev_info(&pdev->dev, "configured with heartbeat=%d sec (nowayout=%d)\n", 2681950f499SPaul Mundt sh_wdt_dev.timeout, nowayout); 2691950f499SPaul Mundt 2701950f499SPaul Mundt rc = watchdog_register_device(&sh_wdt_dev); 2711950f499SPaul Mundt if (unlikely(rc)) { 2721950f499SPaul Mundt dev_err(&pdev->dev, "Can't register watchdog (err=%d)\n", rc); 2732f7b9b48SJingoo Han return rc; 2748f5585ecSPaul Mundt } 2758f5585ecSPaul Mundt 276e99e88a9SKees Cook timer_setup(&wdt->timer, sh_wdt_ping, 0); 2778f5585ecSPaul Mundt wdt->timer.expires = next_ping_period(clock_division_ratio); 2788f5585ecSPaul Mundt 2798f5585ecSPaul Mundt dev_info(&pdev->dev, "initialized.\n"); 2808f5585ecSPaul Mundt 2818c013d96SPaul Mundt pm_runtime_enable(&pdev->dev); 2828c013d96SPaul Mundt 2838f5585ecSPaul Mundt return 0; 2848f5585ecSPaul Mundt } 2858f5585ecSPaul Mundt 2864b12b896SBill Pemberton static int sh_wdt_remove(struct platform_device *pdev) 2878f5585ecSPaul Mundt { 2881950f499SPaul Mundt watchdog_unregister_device(&sh_wdt_dev); 2898f5585ecSPaul Mundt 2908c013d96SPaul Mundt pm_runtime_disable(&pdev->dev); 2918f5585ecSPaul Mundt 2928f5585ecSPaul Mundt return 0; 2938f5585ecSPaul Mundt } 2948f5585ecSPaul Mundt 29540968126SPaul Mundt static void sh_wdt_shutdown(struct platform_device *pdev) 29640968126SPaul Mundt { 2971950f499SPaul Mundt sh_wdt_stop(&sh_wdt_dev); 29840968126SPaul Mundt } 29940968126SPaul Mundt 3008f5585ecSPaul Mundt static struct platform_driver sh_wdt_driver = { 3018f5585ecSPaul Mundt .driver = { 3028f5585ecSPaul Mundt .name = DRV_NAME, 3038f5585ecSPaul Mundt }, 3048f5585ecSPaul Mundt 3058f5585ecSPaul Mundt .probe = sh_wdt_probe, 30682268714SBill Pemberton .remove = sh_wdt_remove, 30740968126SPaul Mundt .shutdown = sh_wdt_shutdown, 3088f5585ecSPaul Mundt }; 3098f5585ecSPaul Mundt 310b7e04f8cSWim Van Sebroeck static int __init sh_wdt_init(void) 311b7e04f8cSWim Van Sebroeck { 3128f5585ecSPaul Mundt if (unlikely(clock_division_ratio < 0x5 || 3138f5585ecSPaul Mundt clock_division_ratio > 0x7)) { 314b7e04f8cSWim Van Sebroeck clock_division_ratio = WTCSR_CKS_4096; 3158f5585ecSPaul Mundt 31627c766aaSJoe Perches pr_info("divisor must be 0x5<=x<=0x7, using %d\n", 31727c766aaSJoe Perches clock_division_ratio); 318b7e04f8cSWim Van Sebroeck } 319b7e04f8cSWim Van Sebroeck 3208f5585ecSPaul Mundt return platform_driver_register(&sh_wdt_driver); 321b7e04f8cSWim Van Sebroeck } 322b7e04f8cSWim Van Sebroeck 323b7e04f8cSWim Van Sebroeck static void __exit sh_wdt_exit(void) 324b7e04f8cSWim Van Sebroeck { 3258f5585ecSPaul Mundt platform_driver_unregister(&sh_wdt_driver); 326b7e04f8cSWim Van Sebroeck } 3278f5585ecSPaul Mundt module_init(sh_wdt_init); 3288f5585ecSPaul Mundt module_exit(sh_wdt_exit); 329b7e04f8cSWim Van Sebroeck 330b7e04f8cSWim Van Sebroeck MODULE_AUTHOR("Paul Mundt <lethal@linux-sh.org>"); 331b7e04f8cSWim Van Sebroeck MODULE_DESCRIPTION("SuperH watchdog driver"); 332b7e04f8cSWim Van Sebroeck MODULE_LICENSE("GPL"); 3338f5585ecSPaul Mundt MODULE_ALIAS("platform:" DRV_NAME); 334b7e04f8cSWim Van Sebroeck 335b7e04f8cSWim Van Sebroeck module_param(clock_division_ratio, int, 0); 336a77dba7eSWim Van Sebroeck MODULE_PARM_DESC(clock_division_ratio, 337a77dba7eSWim Van Sebroeck "Clock division ratio. Valid ranges are from 0x5 (1.31ms) " 33876550d32SRandy Dunlap "to 0x7 (5.25ms). (default=" __MODULE_STRING(WTCSR_CKS_4096) ")"); 339b7e04f8cSWim Van Sebroeck 340b7e04f8cSWim Van Sebroeck module_param(heartbeat, int, 0); 34170b814ecSAlan Cox MODULE_PARM_DESC(heartbeat, 34270b814ecSAlan Cox "Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default=" 34370b814ecSAlan Cox __MODULE_STRING(WATCHDOG_HEARTBEAT) ")"); 344b7e04f8cSWim Van Sebroeck 34586a1e189SWim Van Sebroeck module_param(nowayout, bool, 0); 34670b814ecSAlan Cox MODULE_PARM_DESC(nowayout, 34770b814ecSAlan Cox "Watchdog cannot be stopped once started (default=" 34870b814ecSAlan Cox __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); 349