[lkml]   [2002]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] 2.5.4 PREEMPT on UP x86 breakage
In 2.5.4, CONFIG_PREEMPT breaks UP x86 kernels by triggering
the BUG in release_kernel_lock(), kernel/sched.c, line 664.
The patch below fixed it for me. It's a bit crude, but smp.h
doesn't export the #define if CONFIG_SMP is disabled.


--- linux-2.5.4/include/asm-i386/smplock.h.~1~ Mon Feb 11 12:21:46 2002
+++ linux-2.5.4/include/asm-i386/smplock.h Mon Feb 11 16:55:18 2002
@@ -15,7 +15,7 @@
#define kernel_locked() preempt_get_count()
-#define global_irq_holder 0
+#define global_irq_holder 0xFF /* XXX: NO_PROC_ID */
#define kernel_locked() 1
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:18    [W:0.355 / U:2.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site