1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

brcm47xx: watchdog: deactivate NOWAYOUT.

In the old configuration the SoC issued a reboot if the watchdog was 
killed also if it was kill with TERM and not KILL.

This will fix #11724.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34324 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke
2012-11-24 20:24:27 +00:00
parent 9a462204d1
commit c57e2a3047
6 changed files with 34 additions and 28 deletions

View File

@@ -8,7 +8,7 @@
static int timeout = WDT_DEFAULT_TIME;
static bool nowayout = WATCHDOG_NOWAYOUT;
@@ -52,6 +53,53 @@ static inline struct bcm47xx_wdt *bcm47x
@@ -50,6 +51,53 @@ static inline struct bcm47xx_wdt *bcm47x
return container_of(wdd, struct bcm47xx_wdt, wdd);
}
@@ -62,7 +62,7 @@
static void bcm47xx_wdt_soft_timer_tick(unsigned long data)
{
struct bcm47xx_wdt *wdt = (struct bcm47xx_wdt *)data;
@@ -136,15 +184,22 @@ static struct watchdog_ops bcm47xx_wdt_s
@@ -134,15 +182,22 @@ static struct watchdog_ops bcm47xx_wdt_s
static int __devinit bcm47xx_wdt_probe(struct platform_device *pdev)
{
int ret;
@@ -88,7 +88,7 @@
wdt->wdd.info = &bcm47xx_wdt_info;
wdt->wdd.timeout = WDT_DEFAULT_TIME;
ret = wdt->wdd.ops->set_timeout(&wdt->wdd, timeout);
@@ -162,14 +217,16 @@ static int __devinit bcm47xx_wdt_probe(s
@@ -160,14 +215,16 @@ static int __devinit bcm47xx_wdt_probe(s
if (ret)
goto err_notifier;