lkml.org 
[lkml]   [2000]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 2.2.18pre2 microcode.c fix refine.
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.029 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site