]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - arch/blackfin/include/asm/irq.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
[linux-2.6.git] / arch / blackfin / include / asm / irq.h
1 /*
2  * Copyright 2004-2009 Analog Devices Inc.
3  *                2003 HuTao
4  *                2002 Arcturus Networks Inc. (www.arcturusnetworks.com
5  *                       Ted Ma <mated@sympatico.ca>
6  *
7  * Licensed under the GPL-2
8  */
9
10 #ifndef _BFIN_IRQ_H_
11 #define _BFIN_IRQ_H_
12
13 #include <linux/irqflags.h>
14
15 #include <mach/anomaly.h>
16
17 /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
18 #include <mach/irq.h>
19
20 #if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE)
21 # define NOP_PAD_ANOMALY_05000244 "nop; nop;"
22 #else
23 # define NOP_PAD_ANOMALY_05000244
24 #endif
25
26 #define idle_with_irq_disabled() \
27         __asm__ __volatile__( \
28                 NOP_PAD_ANOMALY_05000244 \
29                 ".align 8;" \
30                 "sti %0;" \
31                 "idle;" \
32                 : \
33                 : "d" (bfin_irq_flags) \
34         )
35
36 #include <asm-generic/irq.h>
37
38 #endif                          /* _BFIN_IRQ_H_ */