Commit 34ee4148 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: GT641xx: Convert timer lock to raw spinlock.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent da4afffc
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <asm/gt64120.h> #include <asm/gt64120.h>
#include <asm/time.h> #include <asm/time.h>
static DEFINE_SPINLOCK(gt641xx_timer_lock); static DEFINE_RAW_SPINLOCK(gt641xx_timer_lock);
static unsigned int gt641xx_base_clock; static unsigned int gt641xx_base_clock;
void gt641xx_set_base_clock(unsigned int clock) void gt641xx_set_base_clock(unsigned int clock)
...@@ -49,7 +49,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta, ...@@ -49,7 +49,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta,
{ {
u32 ctrl; u32 ctrl;
spin_lock(&gt641xx_timer_lock); raw_spin_lock(&gt641xx_timer_lock);
ctrl = GT_READ(GT_TC_CONTROL_OFS); ctrl = GT_READ(GT_TC_CONTROL_OFS);
ctrl &= ~(GT_TC_CONTROL_ENTC0_MSK | GT_TC_CONTROL_SELTC0_MSK); ctrl &= ~(GT_TC_CONTROL_ENTC0_MSK | GT_TC_CONTROL_SELTC0_MSK);
...@@ -58,7 +58,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta, ...@@ -58,7 +58,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta,
GT_WRITE(GT_TC0_OFS, delta); GT_WRITE(GT_TC0_OFS, delta);
GT_WRITE(GT_TC_CONTROL_OFS, ctrl); GT_WRITE(GT_TC_CONTROL_OFS, ctrl);
spin_unlock(&gt641xx_timer_lock); raw_spin_unlock(&gt641xx_timer_lock);
return 0; return 0;
} }
...@@ -68,7 +68,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode, ...@@ -68,7 +68,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode,
{ {
u32 ctrl; u32 ctrl;
spin_lock(&gt641xx_timer_lock); raw_spin_lock(&gt641xx_timer_lock);
ctrl = GT_READ(GT_TC_CONTROL_OFS); ctrl = GT_READ(GT_TC_CONTROL_OFS);
ctrl &= ~(GT_TC_CONTROL_ENTC0_MSK | GT_TC_CONTROL_SELTC0_MSK); ctrl &= ~(GT_TC_CONTROL_ENTC0_MSK | GT_TC_CONTROL_SELTC0_MSK);
...@@ -86,7 +86,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode, ...@@ -86,7 +86,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode,
GT_WRITE(GT_TC_CONTROL_OFS, ctrl); GT_WRITE(GT_TC_CONTROL_OFS, ctrl);
spin_unlock(&gt641xx_timer_lock); raw_spin_unlock(&gt641xx_timer_lock);
} }
static void gt641xx_timer0_event_handler(struct clock_event_device *dev) static void gt641xx_timer0_event_handler(struct clock_event_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment