lkml.org 
[lkml]   [2000]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] Re: [PATCH] Latest preemptible kernel (low latency) patch available
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/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.146 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site