Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adding breaktrace & disabling timer migration
[kvmfornfv.git]
/
kernel
/
include
/
linux
/
bitmap.h
diff --git
a/kernel/include/linux/bitmap.h
b/kernel/include/linux/bitmap.h
index
ea17cca
..
9653fdb
100644
(file)
--- a/
kernel/include/linux/bitmap.h
+++ b/
kernel/include/linux/bitmap.h
@@
-295,7
+295,7
@@
static inline int bitmap_full(const unsigned long *src, unsigned int nbits)
return find_first_zero_bit(src, nbits) == nbits;
}
return find_first_zero_bit(src, nbits) == nbits;
}
-static inline int bitmap_weight(const unsigned long *src, unsigned int nbits)
+static
__always_
inline int bitmap_weight(const unsigned long *src, unsigned int nbits)
{
if (small_const_nbits(nbits))
return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
{
if (small_const_nbits(nbits))
return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));