Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356291
b: refs/heads/master
c: 5042afe
h: refs/heads/master
i:
  356289: ecc434e
  356287: f58cc28
v: v3
  • Loading branch information
Ingo Molnar authored and Ingo Molnar committed Feb 19, 2013
1 parent 9c0ec8f commit 2f92bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 9fb1b90ce0a847a8cc9492a6c1f347b5be1f33ff
refs/heads/master: 5042afe7fe32390e79910ecd0a1f0563d4bca38c
8 changes: 4 additions & 4 deletions trunk/include/asm-generic/cmpxchg-local.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static inline unsigned long __cmpxchg_local_generic(volatile void *ptr,
if (size == 8 && sizeof(unsigned long) != 8)
wrong_size_cmpxchg(ptr);

local_irq_save(flags);
raw_local_irq_save(flags);
switch (size) {
case 1: prev = *(u8 *)ptr;
if (prev == old)
Expand All @@ -42,7 +42,7 @@ static inline unsigned long __cmpxchg_local_generic(volatile void *ptr,
default:
wrong_size_cmpxchg(ptr);
}
local_irq_restore(flags);
raw_local_irq_restore(flags);
return prev;
}

Expand All @@ -55,11 +55,11 @@ static inline u64 __cmpxchg64_local_generic(volatile void *ptr,
u64 prev;
unsigned long flags;

local_irq_save(flags);
raw_local_irq_save(flags);
prev = *(u64 *)ptr;
if (prev == old)
*(u64 *)ptr = new;
local_irq_restore(flags);
raw_local_irq_restore(flags);
return prev;
}

Expand Down

0 comments on commit 2f92bfa

Please sign in to comment.