[PATCH] scheduler cache-hot-autodetect
[deliverable/linux.git] / arch / i386 / kernel / smpboot.c
index 9ed449af8e9fdd350a42ff2c606c0af154dad875..a9bf5f222e4787a011cdaaf0ba866e553d1c51b7 100644 (file)
@@ -903,6 +903,12 @@ static int __devinit do_boot_cpu(int apicid, int cpu)
        unsigned long start_eip;
        unsigned short nmi_high = 0, nmi_low = 0;
 
+       if (!cpu_gdt_descr[cpu].address &&
+           !(cpu_gdt_descr[cpu].address = get_zeroed_page(GFP_KERNEL))) {
+               printk("Failed to allocate GDT for CPU %d\n", cpu);
+               return 1;
+       }
+
        ++cpucount;
 
        /*
@@ -1090,6 +1096,7 @@ static void smp_tune_scheduling (void)
                        cachesize = 16; /* Pentiums, 2x8kB cache */
                        bandwidth = 100;
                }
+               max_cache_size = cachesize * 1024;
        }
 }
 
This page took 0.029078 seconds and 5 git commands to generate.