diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-05-19 16:29:59 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 06:01:26 -0400 |
commit | 136ef671df04dc157afa0d4b96c7bd23ba072c9c (patch) | |
tree | ffe1d8e41e13204c684604541c7a5886238eb38c /arch | |
parent | 8732fc4b237fca3bd3cb0ec87ca8fb90271b0baf (diff) |
x86: allow MPPARSE to be deselected in SMP configs
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/Kconfig.debug | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup_64.c | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index ac1e31ba4795..d5b364b43a02 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -127,7 +127,7 @@ config 4KSTACKS | |||
127 | 127 | ||
128 | config X86_FIND_SMP_CONFIG | 128 | config X86_FIND_SMP_CONFIG |
129 | def_bool y | 129 | def_bool y |
130 | depends on X86_LOCAL_APIC || X86_VOYAGER | 130 | depends on X86_MPPARSE || X86_VOYAGER || X86_VISWS |
131 | depends on X86_32 | 131 | depends on X86_32 |
132 | 132 | ||
133 | config X86_MPPARSE | 133 | config X86_MPPARSE |
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c index e1173aecf69a..c04e8c91daf7 100644 --- a/arch/x86/kernel/setup_32.c +++ b/arch/x86/kernel/setup_32.c | |||
@@ -814,7 +814,7 @@ void __init setup_arch(char **cmdline_p) | |||
814 | "CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n"); | 814 | "CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n"); |
815 | #endif | 815 | #endif |
816 | #endif | 816 | #endif |
817 | #ifdef CONFIG_X86_LOCAL_APIC | 817 | #if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS) |
818 | if (smp_found_config) | 818 | if (smp_found_config) |
819 | get_smp_config(); | 819 | get_smp_config(); |
820 | #endif | 820 | #endif |
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 975a5da46e49..89e6cca5d693 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -456,10 +456,12 @@ void __init setup_arch(char **cmdline_p) | |||
456 | if (efi_enabled) | 456 | if (efi_enabled) |
457 | efi_reserve_bootmem(); | 457 | efi_reserve_bootmem(); |
458 | 458 | ||
459 | #ifdef CONFIG_X86_MPPARSE | ||
459 | /* | 460 | /* |
460 | * Find and reserve possible boot-time SMP configuration: | 461 | * Find and reserve possible boot-time SMP configuration: |
461 | */ | 462 | */ |
462 | find_smp_config(); | 463 | find_smp_config(); |
464 | #endif | ||
463 | #ifdef CONFIG_BLK_DEV_INITRD | 465 | #ifdef CONFIG_BLK_DEV_INITRD |
464 | if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) { | 466 | if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) { |
465 | unsigned long ramdisk_image = boot_params.hdr.ramdisk_image; | 467 | unsigned long ramdisk_image = boot_params.hdr.ramdisk_image; |
@@ -502,11 +504,13 @@ void __init setup_arch(char **cmdline_p) | |||
502 | 504 | ||
503 | init_cpu_to_node(); | 505 | init_cpu_to_node(); |
504 | 506 | ||
507 | #ifdef CONFIG_X86_MPPARSE | ||
505 | /* | 508 | /* |
506 | * get boot-time SMP configuration: | 509 | * get boot-time SMP configuration: |
507 | */ | 510 | */ |
508 | if (smp_found_config) | 511 | if (smp_found_config) |
509 | get_smp_config(); | 512 | get_smp_config(); |
513 | #endif | ||
510 | init_apic_mappings(); | 514 | init_apic_mappings(); |
511 | ioapic_init_mappings(); | 515 | ioapic_init_mappings(); |
512 | 516 | ||