projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9034bf
)
powerpc: bitops: introduce {clear,set}_bit_le()
author
Takuya Yoshikawa
<
[email protected]
>
Fri, 5 Oct 2012 00:13:10 +0000
(17:13 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 5 Oct 2012 18:04:55 +0000
(
03:04
+0900)
Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is
being used for this missing function.
Signed-off-by: Takuya Yoshikawa <
[email protected]
>
Acked-by: Benjamin Herrenschmidt <
[email protected]
>
Cc: Avi Kivity <
[email protected]
>
Cc: Marcelo Tosatti <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/powerpc/include/asm/bitops.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/bitops.h
b/arch/powerpc/include/asm/bitops.h
index efdc92618b38ddfa7da075a53fb3ba93e9c71dae..dc2cf9c6d9e65cc0a3592ce8275dcb114b6d6401 100644
(file)
--- a/
arch/powerpc/include/asm/bitops.h
+++ b/
arch/powerpc/include/asm/bitops.h
@@
-288,6
+288,16
@@
static __inline__ int test_bit_le(unsigned long nr,
return (tmp[nr >> 3] >> (nr & 7)) & 1;
}
+static inline void set_bit_le(int nr, void *addr)
+{
+ set_bit(nr ^ BITOP_LE_SWIZZLE, addr);
+}
+
+static inline void clear_bit_le(int nr, void *addr)
+{
+ clear_bit(nr ^ BITOP_LE_SWIZZLE, addr);
+}
+
static inline void __set_bit_le(int nr, void *addr)
{
__set_bit(nr ^ BITOP_LE_SWIZZLE, addr);