[patch] 2.2.18pre2 microcode.c fix refine.

From: Keitaro Yosimura (ramsy@linux.or.jp)
Date: Sun Sep 03 2000 - 22:48:49 EST


Hi. alan.
2.2.18pre2 is fixed microcode.c complie ploblem.
but, I think non smart code.

please use this patch:)

diff -urN linux.orig/arch/i386/kernel/microcode.c linux/arch/i386/kernel/microcode.c
--- linux.orig/arch/i386/kernel/microcode.c Mon Sep 4 11:45:13 2000
+++ linux/arch/i386/kernel/microcode.c Mon Sep 4 11:47:55 2000
@@ -174,12 +174,8 @@
         int i, error = 0, err;
         struct microcode *m;
 
-#ifdef __SMP__
         if (smp_call_function(do_update_one, (void *)update_req, 1, 1) != 0)
                 panic("do_microcode_update(): timed out waiting for other CPUs\n");
-#else
- smp_call_function(do_update_one, (void *)update_req, 1, 1);
-#endif
 
         do_update_one((void *)update_req);
 
diff -urN linux.orig/include/linux/smp.h linux/include/linux/smp.h
--- linux.orig/include/linux/smp.h Thu Jun 3 03:29:28 1999
+++ linux/include/linux/smp.h Mon Sep 4 11:49:10 2000
@@ -80,7 +80,7 @@
 #define smp_threads_ready 1
 #define kernel_lock()
 #define cpu_logical_map(cpu) 0
-#define smp_call_function(func,info,retry,wait)
+#define smp_call_function(func,info,retry,wait) ({0;})
 
 #endif
 #endif

<|> YOSHIMURA 'ramsy' Keitaro / Japan Linux Association
<|> mailto:ramsy@linux.or.jp
<|> http://jla.linux.or.jp/index.html

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



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:16 EST