Skip to content

Commit

Permalink
x86: allow MPPARSE to be deselected in SMP configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Starikovskiy authored and Thomas Gleixner committed May 25, 2008
1 parent 8732fc4 commit 136ef67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ config 4KSTACKS

config X86_FIND_SMP_CONFIG
def_bool y
depends on X86_LOCAL_APIC || X86_VOYAGER
depends on X86_MPPARSE || X86_VOYAGER || X86_VISWS
depends on X86_32

config X86_MPPARSE
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void __init setup_arch(char **cmdline_p)
"CONFIG_X86_GENERICARCH or CONFIG_X86_BIGSMP.\n");
#endif
#endif
#ifdef CONFIG_X86_LOCAL_APIC
#if defined(CONFIG_X86_MPPARSE) || defined(CONFIG_X86_VISWS)
if (smp_found_config)
get_smp_config();
#endif
Expand Down
4 changes: 4 additions & 0 deletions arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,12 @@ void __init setup_arch(char **cmdline_p)
if (efi_enabled)
efi_reserve_bootmem();

#ifdef CONFIG_X86_MPPARSE
/*
* Find and reserve possible boot-time SMP configuration:
*/
find_smp_config();
#endif
#ifdef CONFIG_BLK_DEV_INITRD
if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) {
unsigned long ramdisk_image = boot_params.hdr.ramdisk_image;
Expand Down Expand Up @@ -502,11 +504,13 @@ void __init setup_arch(char **cmdline_p)

init_cpu_to_node();

#ifdef CONFIG_X86_MPPARSE
/*
* get boot-time SMP configuration:
*/
if (smp_found_config)
get_smp_config();
#endif
init_apic_mappings();
ioapic_init_mappings();

Expand Down

0 comments on commit 136ef67

Please sign in to comment.