[RFC][PATCH 3/8] Removal of dead code from arch/blackfin/include/asm/irqflags.h

From: N.P.S.
Date: Fri Oct 22 2010 - 14:24:28 EST


commit 12282e20f3cb7757bfe333cac43174751453c15b
Author: N.P.S <napohybelskurwysynom2010@xxxxxxxxx>
Date: Thu Oct 21 23:53:26 2010 +0200

Removal of dead code from
arch/blackfin/include/asm/irqflags.h

Signed-off-by: Zimny Lech <napohybelskurwysynom2010@xxxxxxxxx>
CC: Li Yi <yi.li@xxxxxxxxxx>
CC: <uclinux-dist-devel@xxxxxxxxxxxxxxxxxxxx>
CC: <linux-kernel@xxxxxxxxxxxxxxx>

diff --git a/arch/blackfin/include/asm/irqflags.h b/arch/blackfin/include/asm/irqflags.h
index 813a1af..26dfd27 100644
--- a/arch/blackfin/include/asm/irqflags.h
+++ b/arch/blackfin/include/asm/irqflags.h
@@ -137,42 +137,10 @@ static inline void local_irq_restore_hw_notrace(unsigned long flags)
local_irq_enable_hw_notrace();
}

-#ifdef CONFIG_IPIPE_TRACE_IRQSOFF
-# define local_irq_disable_hw() \
- do { \
- if (!irqs_disabled_hw()) { \
- local_irq_disable_hw_notrace(); \
- ipipe_trace_begin(0x80000000); \
- } \
- } while (0)
-# define local_irq_enable_hw() \
- do { \
- if (irqs_disabled_hw()) { \
- ipipe_trace_end(0x80000000); \
- local_irq_enable_hw_notrace(); \
- } \
- } while (0)
-# define local_irq_save_hw(flags) \
- do { \
- local_save_flags_hw(flags); \
- if (!irqs_disabled_flags_hw(flags)) { \
- local_irq_disable_hw_notrace(); \
- ipipe_trace_begin(0x80000001); \
- } \
- } while (0)
-# define local_irq_restore_hw(flags) \
- do { \
- if (!irqs_disabled_flags_hw(flags)) { \
- ipipe_trace_end(0x80000001); \
- local_irq_enable_hw_notrace(); \
- } \
- } while (0)
-#else /* !CONFIG_IPIPE_TRACE_IRQSOFF */
# define local_irq_disable_hw() local_irq_disable_hw_notrace()
# define local_irq_enable_hw() local_irq_enable_hw_notrace()
# define local_irq_save_hw(flags) local_irq_save_hw_notrace(flags)
# define local_irq_restore_hw(flags) local_irq_restore_hw_notrace(flags)
-#endif /* !CONFIG_IPIPE_TRACE_IRQSOFF */

#else /* CONFIG_IPIPE */

--
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/