summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAkinobu Mita <mita@miraclelinux.com>2006-02-03 12:03:46 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-03 17:32:00 +0100
commitf434baf4c6ae4a392b7c34843825af0894c89db2 (patch)
tree1b2773fde539d62d3a19ba11ac5828d3fb20340d /include
parent[PATCH] Documentation: Updated PCI Error Recovery (diff)
downloadlinux-f434baf4c6ae4a392b7c34843825af0894c89db2.tar.xz
linux-f434baf4c6ae4a392b7c34843825af0894c89db2.zip
[PATCH] fix generic_fls64()
Noticed by Rune Torgersen. Fix generic_fls64(). tcp_cubic is using fls64(). Signed-off-by: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index 6a2a19f14bb2..208650b1ad3a 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -81,7 +81,7 @@ static inline int generic_fls64(__u64 x)
{
__u32 h = x >> 32;
if (h)
- return fls(x) + 32;
+ return fls(h) + 32;
return fls(x);
}