mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-01 22:25:20 +02:00
efde9bfbde
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13220 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
629 B
Diff
24 lines
629 B
Diff
diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c
|
|
index b4b7b0a..3acce62 100644
|
|
--- a/drivers/watchdog/mtx-1_wdt.c
|
|
+++ b/drivers/watchdog/mtx-1_wdt.c
|
|
@@ -98,6 +98,8 @@ static void mtx1_wdt_reset(void)
|
|
|
|
static void mtx1_wdt_start(void)
|
|
{
|
|
+ unsigned long flags;
|
|
+
|
|
spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
|
|
if (!mtx1_wdt_device.queue) {
|
|
mtx1_wdt_device.queue = 1;
|
|
@@ -110,6 +112,8 @@ static void mtx1_wdt_start(void)
|
|
|
|
static int mtx1_wdt_stop(void)
|
|
{
|
|
+ unsigned long flags;
|
|
+
|
|
spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
|
|
if (mtx1_wdt_device.queue) {
|
|
mtx1_wdt_device.queue = 0;
|
|
|