Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310695
b: refs/heads/master
c: c2225a5
h: refs/heads/master
i:
  310693: f8d96d8
  310691: b65dff6
  310687: 2267e6e
v: v3
  • Loading branch information
Paul Mundt committed Jun 11, 2012
1 parent d62f2a0 commit 47e51a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 50393a92c89c603e2d043c9f0212d3bd66701c86
refs/heads/master: c2225a57e596a308424e59abc7e864f866fe4493
6 changes: 3 additions & 3 deletions trunk/drivers/clocksource/sh_tmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct sh_tmu_priv {
struct clocksource cs;
};

static DEFINE_SPINLOCK(sh_tmu_lock);
static DEFINE_RAW_SPINLOCK(sh_tmu_lock);

#define TSTR -1 /* shared register */
#define TCOR 0 /* channel register */
Expand Down Expand Up @@ -95,7 +95,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start)
unsigned long flags, value;

/* start stop register shared by multiple timer channels */
spin_lock_irqsave(&sh_tmu_lock, flags);
raw_spin_lock_irqsave(&sh_tmu_lock, flags);
value = sh_tmu_read(p, TSTR);

if (start)
Expand All @@ -104,7 +104,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start)
value &= ~(1 << cfg->timer_bit);

sh_tmu_write(p, TSTR, value);
spin_unlock_irqrestore(&sh_tmu_lock, flags);
raw_spin_unlock_irqrestore(&sh_tmu_lock, flags);
}

static int sh_tmu_enable(struct sh_tmu_priv *p)
Expand Down

0 comments on commit 47e51a7

Please sign in to comment.