Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151138
b: refs/heads/master
c: f9ee3ab
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger committed Jun 13, 2009
1 parent 285db79 commit c927aa7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 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: 82bd1d7d45a69c54fb6beedb78ccb1c7d308dd93
refs/heads/master: f9ee3ab81c222219ad4467b75b406efe2616d8a4
16 changes: 8 additions & 8 deletions trunk/arch/blackfin/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static inline int atomic_test_mask(int mask, atomic_t *v)

static inline void atomic_add(int i, atomic_t *v)
{
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter += i;
Expand All @@ -99,7 +99,7 @@ static inline void atomic_add(int i, atomic_t *v)

static inline void atomic_sub(int i, atomic_t *v)
{
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter -= i;
Expand All @@ -110,7 +110,7 @@ static inline void atomic_sub(int i, atomic_t *v)
static inline int atomic_add_return(int i, atomic_t *v)
{
int __temp = 0;
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter += i;
Expand All @@ -124,7 +124,7 @@ static inline int atomic_add_return(int i, atomic_t *v)
static inline int atomic_sub_return(int i, atomic_t *v)
{
int __temp = 0;
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter -= i;
Expand All @@ -136,7 +136,7 @@ static inline int atomic_sub_return(int i, atomic_t *v)

static inline void atomic_inc(volatile atomic_t *v)
{
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter++;
Expand All @@ -145,7 +145,7 @@ static inline void atomic_inc(volatile atomic_t *v)

static inline void atomic_dec(volatile atomic_t *v)
{
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter--;
Expand All @@ -154,7 +154,7 @@ static inline void atomic_dec(volatile atomic_t *v)

static inline void atomic_clear_mask(unsigned int mask, atomic_t *v)
{
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter &= ~mask;
Expand All @@ -163,7 +163,7 @@ static inline void atomic_clear_mask(unsigned int mask, atomic_t *v)

static inline void atomic_set_mask(unsigned int mask, atomic_t *v)
{
long flags;
unsigned long flags;

local_irq_save_hw(flags);
v->counter |= mask;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/blackfin/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ static inline void clear_bit(int nr, volatile unsigned long *addr)

static inline void change_bit(int nr, volatile unsigned long *addr)
{
int mask, flags;
int mask;
unsigned long flags;
unsigned long *ADDR = (unsigned long *)addr;

ADDR += nr >> 5;
Expand Down

0 comments on commit c927aa7

Please sign in to comment.