Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350231
b: refs/heads/master
c: 20bf062
h: refs/heads/master
i:
  350229: 1271cbe
  350227: 6e5be1d
  350223: af22fce
v: v3
  • Loading branch information
Alexander Holler authored and Ingo Molnar committed Feb 18, 2013
1 parent 86e6e19 commit ab9a802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9611dc7a8de8a5c6244886dad020995b1a896236
refs/heads/master: 20bf062c6575e162ede00308ca3a5714ca112009
10 changes: 2 additions & 8 deletions trunk/arch/x86/mm/memtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/memblock.h>

static u64 patterns[] __initdata = {
/* The first entry has to be 0 to leave memtest with zeroed memory */
0,
0xffffffffffffffffULL,
0x5555555555555555ULL,
Expand Down Expand Up @@ -110,15 +111,8 @@ void __init early_memtest(unsigned long start, unsigned long end)
return;

printk(KERN_INFO "early_memtest: # of tests: %d\n", memtest_pattern);
for (i = 0; i < memtest_pattern; i++) {
for (i = memtest_pattern-1; i < UINT_MAX; --i) {
idx = i % ARRAY_SIZE(patterns);
do_one_pass(patterns[idx], start, end);
}

if (idx > 0) {
printk(KERN_INFO "early_memtest: wipe out "
"test pattern from memory\n");
/* additional test with pattern 0 will do this */
do_one_pass(0, start, end);
}
}

0 comments on commit ab9a802

Please sign in to comment.