projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: tegra: pinctrl: remove vddio
[oweals/u-boot.git]
/
arch
/
arm
/
include
/
asm
/
bitops.h
diff --git
a/arch/arm/include/asm/bitops.h
b/arch/arm/include/asm/bitops.h
index 270f163eee3fb5ebe190cec4352c19901361eba9..879e20e0246c2ddfa7eab8dd26a4a91b3943e4b2 100644
(file)
--- a/
arch/arm/include/asm/bitops.h
+++ b/
arch/arm/include/asm/bitops.h
@@
-106,6
+106,11
@@
static inline int test_bit(int nr, const void * addr)
return ((unsigned char *) addr)[nr >> 3] & (1U << (nr & 7));
}
return ((unsigned char *) addr)[nr >> 3] & (1U << (nr & 7));
}
+static inline int __ilog2(unsigned int x)
+{
+ return generic_fls(x) - 1;
+}
+
/*
* ffz = Find First Zero in word. Undefined if no zero exists,
* so code should check against ~0UL first..
/*
* ffz = Find First Zero in word. Undefined if no zero exists,
* so code should check against ~0UL first..