|
@@ -98,6 +98,8 @@ static void mtx1_wdt_reset(void)
|
|
|
|
|
|
static void mtx1_wdt_start(void)
|
|
static void mtx1_wdt_start(void)
|
|
{
|
|
{
|
|
|
|
+ unsigned long flags;
|
|
|
|
+
|
|
spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
|
|
spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
|
|
if (!mtx1_wdt_device.queue) {
|
|
if (!mtx1_wdt_device.queue) {
|
|
mtx1_wdt_device.queue = 1;
|
|
mtx1_wdt_device.queue = 1;
|
|
@@ -110,6 +112,8 @@ static void mtx1_wdt_start(void)
|
|
|
|
|
|
static int mtx1_wdt_stop(void)
|
|
static int mtx1_wdt_stop(void)
|
|
{
|
|
{
|
|
|
|
+ unsigned long flags;
|
|
|
|
+
|
|
spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
|
|
spin_lock_irqsave(&mtx1_wdt_device.lock, flags);
|
|
if (mtx1_wdt_device.queue) {
|
|
if (mtx1_wdt_device.queue) {
|
|
mtx1_wdt_device.queue = 0;
|
|
mtx1_wdt_device.queue = 0;
|