linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers:watchdog:aspeed_wdt: using msleep instead of mdelay
@ 2017-04-16 16:33 Karim Eshapa
  2017-04-16 19:53 ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: Karim Eshapa @ 2017-04-16 16:33 UTC (permalink / raw)
  To: joel; +Cc: wim, linux, linux-watchdog, linux-kernel, Karim Eshapa

that's useful for the scheduler, power management unless
the driver needs to delay in atomic context
look at documentation/timers/timers-howto

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
---
 drivers/watchdog/aspeed_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/aspeed_wdt.c b/drivers/watchdog/aspeed_wdt.c
index 1c65258..17f06d1 100644
--- a/drivers/watchdog/aspeed_wdt.c
+++ b/drivers/watchdog/aspeed_wdt.c
@@ -115,7 +115,7 @@ static int aspeed_wdt_restart(struct watchdog_device *wdd,
 
 	aspeed_wdt_enable(wdt, 128 * WDT_RATE_1MHZ / 1000);
 
-	mdelay(1000);
+	msleep(1000);
 
 	return 0;
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-17 17:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-16 16:33 [PATCH] drivers:watchdog:aspeed_wdt: using msleep instead of mdelay Karim Eshapa
2017-04-16 19:53 ` Guenter Roeck
2017-04-17 17:05   ` Karim Eshapa
2017-04-17 17:28     ` drivers:watchdog:aspeed_wdt: " Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).