Skip to content

Commit

Permalink
clocksource: sh_tmu: Convert timer lock to raw spinlock.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jun 11, 2012
1 parent 50393a9 commit c2225a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 c2225a5

Please sign in to comment.