Commit 2b2f6d9a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix visws build

From: Andrey Panin <pazke@donpac.ru>

this small patch fixes visws build error in 2.6.5.
parent 247aea28
...@@ -28,6 +28,7 @@ unsigned int boot_cpu_logical_apicid = -1U; ...@@ -28,6 +28,7 @@ unsigned int boot_cpu_logical_apicid = -1U;
/* Bitmask of physically existing CPUs */ /* Bitmask of physically existing CPUs */
physid_mask_t phys_cpu_present_map; physid_mask_t phys_cpu_present_map;
unsigned int __initdata maxcpus = NR_CPUS;
/* /*
* The Visual Workstation is Intel MP compliant in the hardware * The Visual Workstation is Intel MP compliant in the hardware
...@@ -89,6 +90,9 @@ void __init find_smp_config(void) ...@@ -89,6 +90,9 @@ void __init find_smp_config(void)
ncpus = CO_CPU_MAX; ncpus = CO_CPU_MAX;
} }
if (ncpus > maxcpus)
ncpus = maxcpus;
smp_found_config = 1; smp_found_config = 1;
while (ncpus--) while (ncpus--)
MP_processor_info(mp++); MP_processor_info(mp++);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment