[lkml]   [2002]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: 2.5.4-pre6 fails to build on UP (sched.c)
On Sun, 2002-02-10 at 17:44, Alessandro Suardi wrote:

> It appears that global_irq_holder will only be seen from
> <asm/hardirq.h> if CONFIG_SMP is defined. I haven't dug
> deeper to see whether this is due to CONFIG_PREEMPT (to
> which I said 'Y') or not.

Indeed, there is a compile error if preemption is enabled but SMP is
not. I apologize. Fix is attached.

Robert Love

diff -urN linux-2.5.4-pre6/include/asm-i386/smplock.h linux/include/asm-i386/smplock.h
--- linux-2.5.4-pre6/include/asm-i386/smplock.h Sun Feb 10 15:35:55 2002
+++ linux/include/asm-i386/smplock.h Sun Feb 10 18:15:55 2002
@@ -15,6 +15,7 @@
#define kernel_locked() preempt_get_count()
+#define global_irq_holder 0
#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.047 / U:7.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site