[PATCH] Re: [PATCH] Latest preemptible kernel (low latency) patch available

Roger Larsson
2000-11-25T00:23:22Z

Hi,

I got compilation errors due to use of START / STOP
definitions (zlib.c, ppp?)

This little additional patch should fix it. They were not
used in any other place of the patch...

I am still compiling...

/RogerL

--- spinlock.h.preemt Sat Nov 25 00:31:38 2000
+++ spinlock.h Sat Nov 25 00:30:50 2000
@@ -47,21 +47,21 @@
/*
* Here are the basic preemption lock macros.
*/
-#define START 0
-#define STOP 1
-#define BKL ((((pree)current)->lock_depth) != -1)
+#define PREEMPT_START 0
+#define PREEMPT_STOP 1
+#define PREEMPT_BKL ((((pree)current)->lock_depth) != -1)

#ifdef DEBUG_PREEMPT
#define debug_lock(t) do { \
- if ((in_ctx_sw_off() - (BKL?1:0)) < t) \
+ if ((in_ctx_sw_off() - (PREEMPT_BKL?1:0))
< t) \
SPIN_BREAKPOINT; \
} while (0)
#else
#define debug_lock(t) do { } while (0)
#endif

-#define preempt_lock_start(c) debug_lock(START)
-#define preempt_lock_stop() debug_lock(STOP)
+#define preempt_lock_start(c) debug_lock(PREEMPT_START)
+#define preempt_lock_stop() debug_lock(PREEMPT_STOP)

#ifdef CONFIG_PREEMPT
#include <asm/current.h>

--
Home page:
http://www.norran.net/nra02596/
-
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/