Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182131
b: refs/heads/master
c: 34ee414
h: refs/heads/master
i:
  182129: 99ef6af
  182127: 4f3f461
v: v3
  • Loading branch information
Ralf Baechle committed Feb 27, 2010
1 parent 85c9aea commit bc2deab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da4afffc1d03c4f0334dabd28ce4c2325ee8f092
refs/heads/master: 34ee4148472996c5fd25fbb5697982914cfe955a
10 changes: 5 additions & 5 deletions trunk/arch/mips/kernel/cevt-gt641xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <asm/gt64120.h>
#include <asm/time.h>

static DEFINE_SPINLOCK(gt641xx_timer_lock);
static DEFINE_RAW_SPINLOCK(gt641xx_timer_lock);
static unsigned int gt641xx_base_clock;

void gt641xx_set_base_clock(unsigned int clock)
Expand All @@ -49,7 +49,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta,
{
u32 ctrl;

spin_lock(&gt641xx_timer_lock);
raw_spin_lock(&gt641xx_timer_lock);

ctrl = GT_READ(GT_TC_CONTROL_OFS);
ctrl &= ~(GT_TC_CONTROL_ENTC0_MSK | GT_TC_CONTROL_SELTC0_MSK);
Expand All @@ -58,7 +58,7 @@ static int gt641xx_timer0_set_next_event(unsigned long delta,
GT_WRITE(GT_TC0_OFS, delta);
GT_WRITE(GT_TC_CONTROL_OFS, ctrl);

spin_unlock(&gt641xx_timer_lock);
raw_spin_unlock(&gt641xx_timer_lock);

return 0;
}
Expand All @@ -68,7 +68,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode,
{
u32 ctrl;

spin_lock(&gt641xx_timer_lock);
raw_spin_lock(&gt641xx_timer_lock);

ctrl = GT_READ(GT_TC_CONTROL_OFS);
ctrl &= ~(GT_TC_CONTROL_ENTC0_MSK | GT_TC_CONTROL_SELTC0_MSK);
Expand All @@ -86,7 +86,7 @@ static void gt641xx_timer0_set_mode(enum clock_event_mode mode,

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)
Expand Down

0 comments on commit bc2deab

Please sign in to comment.