public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] small <linux/hardirq.h> tweaks
@ 2004-09-11 18:59 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-09-11 18:59 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

 - I misspelled CONFIG_PREEMPT CONFIG_PREEPT as various people noticed.
   But in fact that ifdef should just go, else we'll get drivers that
   compile with CONFIG_PREEMPT but not without sooner or later.
 - remove unused hardirq_trylock and hardirq_endlock


--- 1.1/include/linux/hardirq.h	2004-09-08 08:32:57 +02:00
+++ edited/include/linux/hardirq.h	2004-09-10 16:11:31 +02:00
@@ -2,9 +2,7 @@
 #define LINUX_HARDIRQ_H
 
 #include <linux/config.h>
-#ifdef CONFIG_PREEPT
 #include <linux/smp_lock.h>
-#endif
 #include <asm/hardirq.h>
 
 #define __IRQ_MASK(x)	((1UL << (x))-1)
@@ -28,9 +26,6 @@
 #define in_irq()		(hardirq_count())
 #define in_softirq()		(softirq_count())
 #define in_interrupt()		(irq_count())
-
-#define hardirq_trylock()	(!in_interrupt())
-#define hardirq_endlock()	do { } while (0)
 
 #ifdef CONFIG_PREEMPT
 # define in_atomic()	((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-11 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-11 18:59 [PATCH] small <linux/hardirq.h> tweaks Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox