Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207190
b: refs/heads/master
c: 9e58143
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek authored and Linus Torvalds committed Aug 10, 2010
1 parent de500df commit f53a046
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: fa260c00c1aa5c657793a7221e40d2400df5afd8
refs/heads/master: 9e58143dc08123c22c5b9f782b2913bd3a07a03d
12 changes: 6 additions & 6 deletions trunk/include/asm-generic/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ static inline int atomic_add_return(int i, atomic_t *v)
unsigned long flags;
int temp;

local_irq_save(flags);
raw_local_irq_save(flags); /* Don't trace it in a irqsoff handler */
temp = v->counter;
temp += i;
v->counter = temp;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return temp;
}
Expand All @@ -78,11 +78,11 @@ static inline int atomic_sub_return(int i, atomic_t *v)
unsigned long flags;
int temp;

local_irq_save(flags);
raw_local_irq_save(flags); /* Don't trace it in a irqsoff handler */
temp = v->counter;
temp -= i;
v->counter = temp;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return temp;
}
Expand Down Expand Up @@ -135,9 +135,9 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
unsigned long flags;

mask = ~mask;
local_irq_save(flags);
raw_local_irq_save(flags); /* Don't trace it in a irqsoff handler */
*addr &= mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);
}

#define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v)))
Expand Down

0 comments on commit f53a046

Please sign in to comment.