Subject: [linux-audio-dev] [PATCH] Re: [PATCH] Latest preemptible kernel (low latency) patch available
From: Roger Larsson (roger.larsson_AT_norran.net)
Date: Sat Nov 25 2000 - 01:49:57 EET
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/
This archive was generated by hypermail 2b28 : Sat Nov 25 2000 - 02:52:23 EET