]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix visws build
authorAndrew Morton <akpm@osdl.org>
Sun, 18 Apr 2004 03:56:22 +0000 (20:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 18 Apr 2004 03:56:22 +0000 (20:56 -0700)
From: Andrey Panin <pazke@donpac.ru>

this small patch fixes visws build error in 2.6.5.

arch/i386/mach-visws/mpparse.c

index 4b28c09e3d1198c1ff7fec994232f3e8f41465f7..dd1525aa5488a8a2e46c96c225c44979db55c844 100644 (file)
@@ -28,6 +28,7 @@ unsigned int boot_cpu_logical_apicid = -1U;
 /* Bitmask of physically existing CPUs */
 physid_mask_t phys_cpu_present_map;
 
+unsigned int __initdata maxcpus = NR_CPUS;
 
 /*
  * The Visual Workstation is Intel MP compliant in the hardware
@@ -89,6 +90,9 @@ void __init find_smp_config(void)
                ncpus = CO_CPU_MAX;
        }
 
+       if (ncpus > maxcpus)
+               ncpus = maxcpus;
+
        smp_found_config = 1;
        while (ncpus--)
                MP_processor_info(mp++);