Messages in this thread Patch in this message | | | Subject | Re: 2.5.4-pre6 fails to build on UP (sched.c) | From | Robert Love <> | Date | 10 Feb 2002 18:23:27 -0500 |
| |
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 @@ #else #ifdef CONFIG_PREEMPT #define kernel_locked() preempt_get_count() +#define global_irq_holder 0 #else #define kernel_locked() 1 #endif - 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/
| |