Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167372
b: refs/heads/master
c: e9ac829
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Weiner authored and Russell King committed Oct 11, 2009
1 parent cea9412 commit 8235ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 03a6e5bd5ba7d2a37b0bf4327b83d7c83311b0a1
refs/heads/master: e9ac829185c5d17787d78c13c05a40c39d660239
6 changes: 3 additions & 3 deletions trunk/arch/arm/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p)
*p = res | mask;
raw_local_irq_restore(flags);

return res & mask;
return (res & mask) != 0;
}

static inline int
Expand All @@ -101,7 +101,7 @@ ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p)
*p = res & ~mask;
raw_local_irq_restore(flags);

return res & mask;
return (res & mask) != 0;
}

static inline int
Expand All @@ -118,7 +118,7 @@ ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p)
*p = res ^ mask;
raw_local_irq_restore(flags);

return res & mask;
return (res & mask) != 0;
}

#include <asm-generic/bitops/non-atomic.h>
Expand Down

0 comments on commit 8235ec7

Please sign in to comment.