projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[POWERPC] ehea: Remove dependency on MEMORY_HOTPLUG
[firefly-linux-kernel-4.4.55.git]
/
include
/
asm-alpha
/
bitops.h
diff --git
a/include/asm-alpha/bitops.h
b/include/asm-alpha/bitops.h
index 9e19a704d4840693a31bd88413060024e3623266..15f3ae25c51137bb8af4a67b5d5e8cbbea328241 100644
(file)
--- a/
include/asm-alpha/bitops.h
+++ b/
include/asm-alpha/bitops.h
@@
-388,6
+388,11
@@
static inline int fls64(unsigned long x)
}
#endif
+static inline unsigned long __fls(unsigned long x)
+{
+ return fls64(x) - 1;
+}
+
static inline int fls(int x)
{
return fls64((unsigned int) x);