projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-starfive.git]
/
lib
/
find_bit_benchmark.c
diff --git
a/lib/find_bit_benchmark.c
b/lib/find_bit_benchmark.c
index
1075458
..
7c3c011
100644
(file)
--- a/
lib/find_bit_benchmark.c
+++ b/
lib/find_bit_benchmark.c
@@
-174,8
+174,8
@@
static int __init find_bit_test(void)
bitmap_zero(bitmap2, BITMAP_LEN);
while (nbits--) {
bitmap_zero(bitmap2, BITMAP_LEN);
while (nbits--) {
- __set_bit(prandom_u32
() % BITMAP_LEN
, bitmap);
- __set_bit(prandom_u32
() % BITMAP_LEN
, bitmap2);
+ __set_bit(prandom_u32
_max(BITMAP_LEN)
, bitmap);
+ __set_bit(prandom_u32
_max(BITMAP_LEN)
, bitmap2);
}
test_find_next_bit(bitmap, BITMAP_LEN);
}
test_find_next_bit(bitmap, BITMAP_LEN);