Re: problem with 2.2.0pre2 SMP

MOLNAR Ingo (mingo@chiara.csoma.elte.hu)
Fri, 1 Jan 1999 18:40:06 +0100 (CET)


On Fri, 1 Jan 1999, Radu Raduta wrote:

> (and now back to buisness):
> I just downloaded 2.2.0pre2, compiled it and gave it a shot...he kinda
> shoots himself in the foot every time at boot-time, oopsing ( this

my silly bug. The attached patch should fix it.

-- mingo

--- linux/arch/i386/kernel/smp.c.orig2 Fri Jan 1 18:41:26 1999
+++ linux/arch/i386/kernel/smp.c Fri Jan 1 18:42:27 1999
@@ -1058,6 +1058,7 @@
* scheduling on <=i486 based SMP boards.
*/
cacheflush_time = 0;
+ return;
} else {
cachesize = boot_cpu_data.x86_cache_size;
if (cachesize == -1)
@@ -1066,7 +1067,7 @@
cacheflush_time = cpu_hz/1024*cachesize/5000;
}

- printk("per-CPU timeslice cutoff: %ld.%ld usecs.\n",
+ printk("per-CPU timeslice cutoff: %ld.%02ld usecs.\n",
(long)cacheflush_time/(cpu_hz/1000000),
((long)cacheflush_time*100/(cpu_hz/1000000)) % 100);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/