[PATCH 2.5.67-ac1] i686 SMP box doesn't boot

From: Osamu Tomita (tomita@cinet.co.jp)
Date: Wed Apr 09 2003 - 02:00:37 EST


My i686 SMP box did not boot 2.5.67-ac1.
I guess timer_tsc.c is missing change for monotonic timer.
After appling this patch my box boot normaly.

diff -Nru linux-2.5.67-ac1/arch/i386/kernel/timers/timer_tsc.c linux-2.5.67-ac1-quick-fix/arch/i386/kernel/timers/timer_tsc.c
--- linux-2.5.67-ac1/arch/i386/kernel/timers/timer_tsc.c 2003-04-09 00:34:57.000000000 +0900
+++ linux-2.5.67-ac1-quick-fix/arch/i386/kernel/timers/timer_tsc.c 2003-04-09 14:52:32.000000000 +0900
@@ -121,6 +121,9 @@
         int countmp;
         static int count1 = 0;
         unsigned long long this_offset, last_offset;
+
+ write_lock(&monotonic_lock);
+ last_offset = ((unsigned long long)last_tsc_high<<32)|last_tsc_low;
         /*
          * It is important that these two operations happen almost at
          * the same time. We do the RDTSC stuff first, since it's
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:17 EST