diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-05-12 09:43:38 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 02:58:30 -0400 |
commit | 4e50e62ce52f39b5f45e82f68b18254458b429bb (patch) | |
tree | 2628819f18db2bc2755093ece4a26a4c37679fd9 /arch/x86/mm/init_32.c | |
parent | 6a1673ae2201931ce34bf7ba9f90928c864d8334 (diff) |
x86: eliminate duplicate consistency checks in init_32.c
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index ec30d10154b..4834c0fcb6b 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -571,17 +571,6 @@ void __init mem_init(void) | |||
571 | #endif | 571 | #endif |
572 | bad_ppro = ppro_with_ram_bug(); | 572 | bad_ppro = ppro_with_ram_bug(); |
573 | 573 | ||
574 | #ifdef CONFIG_HIGHMEM | ||
575 | /* check that fixmap and pkmap do not overlap */ | ||
576 | if (PKMAP_BASE + LAST_PKMAP*PAGE_SIZE >= FIXADDR_START) { | ||
577 | printk(KERN_ERR | ||
578 | "fixmap and kmap areas overlap - this will crash\n"); | ||
579 | printk(KERN_ERR "pkstart: %lxh pkend: %lxh fixstart %lxh\n", | ||
580 | PKMAP_BASE, PKMAP_BASE + LAST_PKMAP*PAGE_SIZE, | ||
581 | FIXADDR_START); | ||
582 | BUG(); | ||
583 | } | ||
584 | #endif | ||
585 | /* this will put all low memory onto the freelists */ | 574 | /* this will put all low memory onto the freelists */ |
586 | totalram_pages += free_all_bootmem(); | 575 | totalram_pages += free_all_bootmem(); |
587 | 576 | ||
@@ -614,7 +603,6 @@ void __init mem_init(void) | |||
614 | (unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)) | 603 | (unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)) |
615 | ); | 604 | ); |
616 | 605 | ||
617 | #if 1 /* double-sanity-check paranoia */ | ||
618 | printk(KERN_INFO "virtual kernel memory layout:\n" | 606 | printk(KERN_INFO "virtual kernel memory layout:\n" |
619 | " fixmap : 0x%08lx - 0x%08lx (%4ld kB)\n" | 607 | " fixmap : 0x%08lx - 0x%08lx (%4ld kB)\n" |
620 | #ifdef CONFIG_HIGHMEM | 608 | #ifdef CONFIG_HIGHMEM |
@@ -655,7 +643,6 @@ void __init mem_init(void) | |||
655 | #endif | 643 | #endif |
656 | BUG_ON(VMALLOC_START > VMALLOC_END); | 644 | BUG_ON(VMALLOC_START > VMALLOC_END); |
657 | BUG_ON((unsigned long)high_memory > VMALLOC_START); | 645 | BUG_ON((unsigned long)high_memory > VMALLOC_START); |
658 | #endif /* double-sanity-check paranoia */ | ||
659 | 646 | ||
660 | if (boot_cpu_data.wp_works_ok < 0) | 647 | if (boot_cpu_data.wp_works_ok < 0) |
661 | test_wp_bit(); | 648 | test_wp_bit(); |