[PATCH] small <linux/hardirq.h> tweaks

From: Christoph Hellwig
Date: Sat Sep 11 2004 - 14:03:55 EST


- 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())
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/