diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-04-18 20:49:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:28:15 -0400 |
commit | 0327318445d55808991a63137cfb698a90ab6adf (patch) | |
tree | 7f69e3cdb237d38ed675e0206413b16397ff70fd /arch/x86/mm/init_64.c | |
parent | 492c2e476eac010962850006c49df326919b284c (diff) |
x86_64: simplify the memtest parameter setting
use CONFIG_MEMTEST only. if it is set, will have memtest=0 (disabled)
need to have memtest=4 in command line to test more patterns.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r-- | arch/x86/mm/init_64.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 32ba13b0f818..c6d81316db65 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -431,7 +431,7 @@ static void __init init_gbpages(void) | |||
431 | direct_gbpages = 0; | 431 | direct_gbpages = 0; |
432 | } | 432 | } |
433 | 433 | ||
434 | #ifdef CONFIG_MEMTEST_BOOTPARAM | 434 | #ifdef CONFIG_MEMTEST |
435 | 435 | ||
436 | static void __init memtest(unsigned long start_phys, unsigned long size, | 436 | static void __init memtest(unsigned long start_phys, unsigned long size, |
437 | unsigned pattern) | 437 | unsigned pattern) |
@@ -493,7 +493,8 @@ static void __init memtest(unsigned long start_phys, unsigned long size, | |||
493 | 493 | ||
494 | } | 494 | } |
495 | 495 | ||
496 | static int memtest_pattern __initdata = CONFIG_MEMTEST_BOOTPARAM_VALUE; | 496 | /* default is disabled */ |
497 | static int memtest_pattern __initdata; | ||
497 | 498 | ||
498 | static int __init parse_memtest(char *arg) | 499 | static int __init parse_memtest(char *arg) |
499 | { | 500 | { |