aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-08-03 10:04:04 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-08-07 04:39:37 -0400
commit897d85275d7f061ff0ec838bd5224a9e76ad07d6 (patch)
tree3389a9f0e5c25732f81bbda6e6a38c7131ab36b8 /arch
parentbccf650270a94cec6e9238743e84c6e01de30c70 (diff)
[ARM] Fix circular include dependency with IRQ headers
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/hw_irq.h20
-rw-r--r--arch/arm/include/asm/mach/irq.h20
-rw-r--r--arch/arm/kernel/irq.c1
3 files changed, 20 insertions, 21 deletions
diff --git a/arch/arm/include/asm/hw_irq.h b/arch/arm/include/asm/hw_irq.h
index f1a08a500604..90831f6f5f5c 100644
--- a/arch/arm/include/asm/hw_irq.h
+++ b/arch/arm/include/asm/hw_irq.h
@@ -4,6 +4,24 @@
4#ifndef _ARCH_ARM_HW_IRQ_H 4#ifndef _ARCH_ARM_HW_IRQ_H
5#define _ARCH_ARM_HW_IRQ_H 5#define _ARCH_ARM_HW_IRQ_H
6 6
7#include <asm/mach/irq.h> 7static inline void ack_bad_irq(int irq)
8{
9 extern unsigned long irq_err_count;
10 irq_err_count++;
11}
12
13/*
14 * Obsolete inline function for calling irq descriptor handlers.
15 */
16static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc)
17{
18 desc->handle_irq(irq, desc);
19}
20
21void set_irq_flags(unsigned int irq, unsigned int flags);
22
23#define IRQF_VALID (1 << 0)
24#define IRQF_PROBE (1 << 1)
25#define IRQF_NOAUTOEN (1 << 2)
8 26
9#endif 27#endif
diff --git a/arch/arm/include/asm/mach/irq.h b/arch/arm/include/asm/mach/irq.h
index c57b52ce574a..acac5302e4ea 100644
--- a/arch/arm/include/asm/mach/irq.h
+++ b/arch/arm/include/asm/mach/irq.h
@@ -22,20 +22,6 @@ extern void init_FIQ(void);
22extern int show_fiq_list(struct seq_file *, void *); 22extern int show_fiq_list(struct seq_file *, void *);
23 23
24/* 24/*
25 * Obsolete inline function for calling irq descriptor handlers.
26 */
27static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc)
28{
29 desc->handle_irq(irq, desc);
30}
31
32void set_irq_flags(unsigned int irq, unsigned int flags);
33
34#define IRQF_VALID (1 << 0)
35#define IRQF_PROBE (1 << 1)
36#define IRQF_NOAUTOEN (1 << 2)
37
38/*
39 * This is for easy migration, but should be changed in the source 25 * This is for easy migration, but should be changed in the source
40 */ 26 */
41#define do_bad_IRQ(irq,desc) \ 27#define do_bad_IRQ(irq,desc) \
@@ -45,10 +31,4 @@ do { \
45 spin_unlock(&desc->lock); \ 31 spin_unlock(&desc->lock); \
46} while(0) 32} while(0)
47 33
48extern unsigned long irq_err_count;
49static inline void ack_bad_irq(int irq)
50{
51 irq_err_count++;
52}
53
54#endif 34#endif
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index 11dcd52e51be..f88efb135b70 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -38,6 +38,7 @@
38#include <linux/proc_fs.h> 38#include <linux/proc_fs.h>
39 39
40#include <asm/system.h> 40#include <asm/system.h>
41#include <asm/mach/irq.h>
41#include <asm/mach/time.h> 42#include <asm/mach/time.h>
42 43
43/* 44/*