Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288199
b: refs/heads/master
c: e920d59
h: refs/heads/master
i:
  288197: 61ccbfe
  288195: 50d786e
  288191: e3453ba
v: v3
  • Loading branch information
Ming Lei authored and Tejun Heo committed Feb 21, 2012
1 parent 9d4112c commit 3da37f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 7d96b3e55ad45ebe4ff1a1daad27ac1fff8682ec
refs/heads/master: e920d5971d706290c5a6281f719e16c25021f964
20 changes: 10 additions & 10 deletions trunk/include/linux/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ do { \
#define _this_cpu_generic_to_op(pcp, val, op) \
do { \
unsigned long flags; \
local_irq_save(flags); \
raw_local_irq_save(flags); \
*__this_cpu_ptr(&(pcp)) op val; \
local_irq_restore(flags); \
raw_local_irq_restore(flags); \
} while (0)

#ifndef this_cpu_write
Expand Down Expand Up @@ -449,10 +449,10 @@ do { \
({ \
typeof(pcp) ret__; \
unsigned long flags; \
local_irq_save(flags); \
raw_local_irq_save(flags); \
__this_cpu_add(pcp, val); \
ret__ = __this_cpu_read(pcp); \
local_irq_restore(flags); \
raw_local_irq_restore(flags); \
ret__; \
})

Expand All @@ -479,10 +479,10 @@ do { \
#define _this_cpu_generic_xchg(pcp, nval) \
({ typeof(pcp) ret__; \
unsigned long flags; \
local_irq_save(flags); \
raw_local_irq_save(flags); \
ret__ = __this_cpu_read(pcp); \
__this_cpu_write(pcp, nval); \
local_irq_restore(flags); \
raw_local_irq_restore(flags); \
ret__; \
})

Expand All @@ -507,11 +507,11 @@ do { \
({ \
typeof(pcp) ret__; \
unsigned long flags; \
local_irq_save(flags); \
raw_local_irq_save(flags); \
ret__ = __this_cpu_read(pcp); \
if (ret__ == (oval)) \
__this_cpu_write(pcp, nval); \
local_irq_restore(flags); \
raw_local_irq_restore(flags); \
ret__; \
})

Expand Down Expand Up @@ -544,10 +544,10 @@ do { \
({ \
int ret__; \
unsigned long flags; \
local_irq_save(flags); \
raw_local_irq_save(flags); \
ret__ = __this_cpu_generic_cmpxchg_double(pcp1, pcp2, \
oval1, oval2, nval1, nval2); \
local_irq_restore(flags); \
raw_local_irq_restore(flags); \
ret__; \
})

Expand Down

0 comments on commit 3da37f2

Please sign in to comment.