Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
arch
/
powerpc
/
include
/
asm
/
word-at-a-time.h
diff --git
a/kernel/arch/powerpc/include/asm/word-at-a-time.h
b/kernel/arch/powerpc/include/asm/word-at-a-time.h
index
5b3a903
..
e4396a7
100644
(file)
--- a/
kernel/arch/powerpc/include/asm/word-at-a-time.h
+++ b/
kernel/arch/powerpc/include/asm/word-at-a-time.h
@@
-40,6
+40,11
@@
static inline bool has_zero(unsigned long val, unsigned long *data, const struct
return (val + c->high_bits) & ~rhs;
}
+static inline unsigned long zero_bytemask(unsigned long mask)
+{
+ return ~1ul << __fls(mask);
+}
+
#else
#ifdef CONFIG_64BIT