Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36573
b: refs/heads/master
c: 8dd5c84
h: refs/heads/master
i:
  36571: fbf243a
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Sep 25, 2006
1 parent d4377a6 commit da77e19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 34148c6990d2f0107b53fe4ddf29b1ba30e613d3
refs/heads/master: 8dd5c845bbc26c3517398abc3e5477b4b42e7176
16 changes: 8 additions & 8 deletions trunk/include/asm-arm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ static inline int atomic_add_return(int i, atomic_t *v)
unsigned long flags;
int val;

local_irq_save(flags);
raw_local_irq_save(flags);
val = v->counter;
v->counter = val += i;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return val;
}
Expand All @@ -141,10 +141,10 @@ static inline int atomic_sub_return(int i, atomic_t *v)
unsigned long flags;
int val;

local_irq_save(flags);
raw_local_irq_save(flags);
val = v->counter;
v->counter = val -= i;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return val;
}
Expand All @@ -154,11 +154,11 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
int ret;
unsigned long flags;

local_irq_save(flags);
raw_local_irq_save(flags);
ret = v->counter;
if (likely(ret == old))
v->counter = new;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return ret;
}
Expand All @@ -167,9 +167,9 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
{
unsigned long flags;

local_irq_save(flags);
raw_local_irq_save(flags);
*addr &= ~mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);
}

#endif /* __LINUX_ARM_ARCH__ */
Expand Down

0 comments on commit da77e19

Please sign in to comment.