Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36610
b: refs/heads/master
c: e7cc2c5
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Sep 25, 2006
1 parent adec3e5 commit 5b0b967
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 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: 0c92e830bd39f3e6cf7b151dffecafbdc623496c
refs/heads/master: e7cc2c59cc83558fc26f17eee3c8f901119f0a7c
24 changes: 12 additions & 12 deletions trunk/include/asm-arm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ static inline void ____atomic_set_bit(unsigned int bit, volatile unsigned long *

p += bit >> 5;

local_irq_save(flags);
raw_local_irq_save(flags);
*p |= mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);
}

static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p)
Expand All @@ -49,9 +49,9 @@ static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long

p += bit >> 5;

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

static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p)
Expand All @@ -61,9 +61,9 @@ static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned lon

p += bit >> 5;

local_irq_save(flags);
raw_local_irq_save(flags);
*p ^= mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);
}

static inline int
Expand All @@ -75,10 +75,10 @@ ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p)

p += bit >> 5;

local_irq_save(flags);
raw_local_irq_save(flags);
res = *p;
*p = res | mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return res & mask;
}
Expand All @@ -92,10 +92,10 @@ ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p)

p += bit >> 5;

local_irq_save(flags);
raw_local_irq_save(flags);
res = *p;
*p = res & ~mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return res & mask;
}
Expand All @@ -109,10 +109,10 @@ ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p)

p += bit >> 5;

local_irq_save(flags);
raw_local_irq_save(flags);
res = *p;
*p = res ^ mask;
local_irq_restore(flags);
raw_local_irq_restore(flags);

return res & mask;
}
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/asm-arm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,17 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size
#error SMP is not supported on this platform
#endif
case 1:
local_irq_save(flags);
raw_local_irq_save(flags);
ret = *(volatile unsigned char *)ptr;
*(volatile unsigned char *)ptr = x;
local_irq_restore(flags);
raw_local_irq_restore(flags);
break;

case 4:
local_irq_save(flags);
raw_local_irq_save(flags);
ret = *(volatile unsigned long *)ptr;
*(volatile unsigned long *)ptr = x;
local_irq_restore(flags);
raw_local_irq_restore(flags);
break;
#else
case 1:
Expand Down

0 comments on commit 5b0b967

Please sign in to comment.