2 * Copyright 2004-2009 Analog Devices Inc.
4 * 2002 Arcturus Networks Inc. (www.arcturusnetworks.com
5 * Ted Ma <mated@sympatico.ca>
7 * Licensed under the GPL-2
13 #include <linux/irqflags.h>
15 /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
18 #if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE)
19 # define NOP_PAD_ANOMALY_05000244 "nop; nop;"
21 # define NOP_PAD_ANOMALY_05000244
24 #define idle_with_irq_disabled() \
25 __asm__ __volatile__( \
26 NOP_PAD_ANOMALY_05000244 \
31 : "d" (bfin_irq_flags) \
34 #include <asm-generic/irq.h>
36 #endif /* _BFIN_IRQ_H_ */