Blackfin: mass clean up of copyright/licensing info
[safe/jmp/linux-2.6] / 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 /* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
16 #include <mach/irq.h>
17
18 #if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE)
19 # define NOP_PAD_ANOMALY_05000244 "nop; nop;"
20 #else
21 # define NOP_PAD_ANOMALY_05000244
22 #endif
23
24 #define idle_with_irq_disabled() \
25         __asm__ __volatile__( \
26                 NOP_PAD_ANOMALY_05000244 \
27                 ".align 8;" \
28                 "sti %0;" \
29                 "idle;" \
30                 : \
31                 : "d" (bfin_irq_flags) \
32         )
33
34 #include <asm-generic/irq.h>
35
36 #endif                          /* _BFIN_IRQ_H_ */