projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'powerpc-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux-2.6-microblaze.git]
/
lib
/
test_vmalloc.c
diff --git
a/lib/test_vmalloc.c
b/lib/test_vmalloc.c
index
01e9543
..
e14993b
100644
(file)
--- a/
lib/test_vmalloc.c
+++ b/
lib/test_vmalloc.c
@@
-35,6
+35,9
@@
__param(int, test_repeat_count, 1,
__param(int, test_loop_count, 1000000,
"Set test loop counter");
__param(int, test_loop_count, 1000000,
"Set test loop counter");
+__param(int, nr_pages, 0,
+ "Set number of pages for fix_size_alloc_test(default: 1)");
+
__param(int, run_test_mask, INT_MAX,
"Set tests specified in the mask.\n\n"
"\t\tid: 1, name: fix_size_alloc_test\n"
__param(int, run_test_mask, INT_MAX,
"Set tests specified in the mask.\n\n"
"\t\tid: 1, name: fix_size_alloc_test\n"
@@
-262,7
+265,7
@@
static int fix_size_alloc_test(void)
int i;
for (i = 0; i < test_loop_count; i++) {
int i;
for (i = 0; i < test_loop_count; i++) {
- ptr = vmalloc(
3
* PAGE_SIZE);
+ ptr = vmalloc(
(nr_pages > 0 ? nr_pages:1)
* PAGE_SIZE);
if (!ptr)
return -1;
if (!ptr)
return -1;