[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1492360388-20697-1-git-send-email-karim.eshapa@gmail.com>
Date: Sun, 16 Apr 2017 18:33:08 +0200
From: Karim Eshapa <karim.eshapa@...il.com>
To: joel@....id.au
Cc: wim@...ana.be, linux@...ck-us.net, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org, Karim Eshapa <karim.eshapa@...il.com>
Subject: [PATCH] drivers:watchdog:aspeed_wdt: using msleep instead of mdelay
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@...il.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
Powered by blists - more mailing lists