Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296782
b: refs/heads/master
c: 0197c1c
h: refs/heads/master
v: v3
  • Loading branch information
Wim Van Sebroeck committed Mar 27, 2012
1 parent db5356a commit 5f74c9f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b10f7c12e051762b84457f6d38d4b71acbf76a02
refs/heads/master: 0197c1c49ef1ff386b2ebb6d3b0fc85a8e174b5c
1 change: 1 addition & 0 deletions trunk/drivers/staging/mei/wd.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ static int mei_wd_ops_set_timeout(struct watchdog_device *wd_dev, unsigned int t
mutex_lock(&dev->device_lock);

dev->wd_timeout = timeout;
wd_dev->timeout = timeout;
mei_wd_set_start_timeout(dev, dev->wd_timeout);

mutex_unlock(&dev->device_lock);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/watchdog/jz4740_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ static int jz4740_wdt_set_timeout(struct watchdog_device *wdt_dev,

writeb(0x1, drvdata->base + JZ_REG_WDT_COUNTER_ENABLE);

wdt_dev->timeout = new_timeout;
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/watchdog/pnx4008_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ static int pnx4008_wdt_stop(struct watchdog_device *wdd)
static int pnx4008_wdt_set_timeout(struct watchdog_device *wdd,
unsigned int new_timeout)
{
wdd->timeout = new_timeout;
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned timeou
writel(count, wdt_base + S3C2410_WTDAT);
writel(wtcon, wdt_base + S3C2410_WTCON);

wdd->timeout = timeout;

return 0;
}

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/watchdog/via_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ static void wdt_timer_tick(unsigned long data)
static int wdt_ping(struct watchdog_device *wdd)
{
/* calculate when the next userspace timeout will be */
next_heartbeat = jiffies + timeout * HZ;
next_heartbeat = jiffies + wdd->timeout * HZ;
return 0;
}

static int wdt_start(struct watchdog_device *wdd)
{
unsigned int ctl = readl(wdt_mem);

writel(timeout, wdt_mem + VIA_WDT_COUNT);
writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT);
writel(ctl | VIA_WDT_RUNNING | VIA_WDT_TRIGGER, wdt_mem);
wdt_ping(wdd);
mod_timer(&timer, jiffies + WDT_HEARTBEAT);
Expand All @@ -128,7 +128,7 @@ static int wdt_set_timeout(struct watchdog_device *wdd,
unsigned int new_timeout)
{
writel(new_timeout, wdt_mem + VIA_WDT_COUNT);
timeout = new_timeout;
wdd->timeout = new_timeout;
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/watchdog/wm831x_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev,
ret);
}

wdt_dev->timeout = timeout;

return ret;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/watchdog/wm8350_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static int wm8350_wdt_set_timeout(struct watchdog_device *wdt_dev,
wm8350_reg_lock(wm8350);
mutex_unlock(&wdt_mutex);

wdt_dev->timeout = timeout;
return ret;
}

Expand Down

0 comments on commit 5f74c9f

Please sign in to comment.