diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-15 03:06:59 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-05-25 08:13:43 -0400 |
commit | 6327a574f9ce85f0daab8693913003a456f27f1f (patch) | |
tree | a6ce41ca357356fd486a857103010e286cb7ac61 /arch | |
parent | fc6bd7b8ad2043ceeb41bf46e25cd705ab2dce1a (diff) |
Blackfin: move internal irq prototypes out of global namespace
These are only used in a few internal Blackfin places, so move the irq
prototypes out of the global header and into the internal irq one. No
functional changes other than shuffling locales.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/include/asm/bfin-global.h | 10 | ||||
-rw-r--r-- | arch/blackfin/include/asm/irq_handler.h | 10 | ||||
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 1 | ||||
-rw-r--r-- | arch/blackfin/kernel/bfin_ksyms.c | 1 | ||||
-rw-r--r-- | arch/blackfin/kernel/ipipe.c | 1 | ||||
-rw-r--r-- | arch/blackfin/kernel/irqchip.c | 1 | ||||
-rw-r--r-- | arch/blackfin/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-common/smp.c | 1 |
8 files changed, 16 insertions, 10 deletions
diff --git a/arch/blackfin/include/asm/bfin-global.h b/arch/blackfin/include/asm/bfin-global.h index 121cc04d877d..17bcbf60bcae 100644 --- a/arch/blackfin/include/asm/bfin-global.h +++ b/arch/blackfin/include/asm/bfin-global.h | |||
@@ -49,16 +49,6 @@ extern void dump_bfin_trace_buffer(void); | |||
49 | #define dump_bfin_trace_buffer() | 49 | #define dump_bfin_trace_buffer() |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | /* init functions only */ | ||
53 | extern int init_arch_irq(void); | ||
54 | extern void init_exception_vectors(void); | ||
55 | extern void program_IAR(void); | ||
56 | |||
57 | extern asmlinkage void lower_to_irq14(void); | ||
58 | extern asmlinkage void bfin_return_from_exception(void); | ||
59 | extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs); | ||
60 | extern int bfin_internal_set_wake(unsigned int irq, unsigned int state); | ||
61 | |||
62 | extern void *l1_data_A_sram_alloc(size_t); | 52 | extern void *l1_data_A_sram_alloc(size_t); |
63 | extern void *l1_data_B_sram_alloc(size_t); | 53 | extern void *l1_data_B_sram_alloc(size_t); |
64 | extern void *l1_inst_sram_alloc(size_t); | 54 | extern void *l1_inst_sram_alloc(size_t); |
diff --git a/arch/blackfin/include/asm/irq_handler.h b/arch/blackfin/include/asm/irq_handler.h index 7fbe42307b9a..88c35e4ea4bf 100644 --- a/arch/blackfin/include/asm/irq_handler.h +++ b/arch/blackfin/include/asm/irq_handler.h | |||
@@ -10,6 +10,11 @@ | |||
10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
11 | #include <linux/linkage.h> | 11 | #include <linux/linkage.h> |
12 | 12 | ||
13 | /* init functions only */ | ||
14 | extern int __init init_arch_irq(void); | ||
15 | extern void init_exception_vectors(void); | ||
16 | extern void __init program_IAR(void); | ||
17 | |||
13 | /* BASE LEVEL interrupt handler routines */ | 18 | /* BASE LEVEL interrupt handler routines */ |
14 | asmlinkage void evt_exception(void); | 19 | asmlinkage void evt_exception(void); |
15 | asmlinkage void trap(void); | 20 | asmlinkage void trap(void); |
@@ -37,4 +42,9 @@ extern void return_from_exception(void); | |||
37 | extern int bfin_request_exception(unsigned int exception, void (*handler)(void)); | 42 | extern int bfin_request_exception(unsigned int exception, void (*handler)(void)); |
38 | extern int bfin_free_exception(unsigned int exception, void (*handler)(void)); | 43 | extern int bfin_free_exception(unsigned int exception, void (*handler)(void)); |
39 | 44 | ||
45 | extern asmlinkage void lower_to_irq14(void); | ||
46 | extern asmlinkage void bfin_return_from_exception(void); | ||
47 | extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs); | ||
48 | extern int bfin_internal_set_wake(unsigned int irq, unsigned int state); | ||
49 | |||
40 | #endif | 50 | #endif |
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 170cf90735ba..207bb6b11b5c 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <asm/gpio.h> | 14 | #include <asm/gpio.h> |
15 | #include <asm/portmux.h> | 15 | #include <asm/portmux.h> |
16 | #include <linux/irq.h> | 16 | #include <linux/irq.h> |
17 | #include <asm/irq_handler.h> | ||
17 | 18 | ||
18 | #if ANOMALY_05000311 || ANOMALY_05000323 | 19 | #if ANOMALY_05000311 || ANOMALY_05000323 |
19 | enum { | 20 | enum { |
diff --git a/arch/blackfin/kernel/bfin_ksyms.c b/arch/blackfin/kernel/bfin_ksyms.c index 2c264b51566a..c446591b961d 100644 --- a/arch/blackfin/kernel/bfin_ksyms.c +++ b/arch/blackfin/kernel/bfin_ksyms.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <asm/cacheflush.h> | 12 | #include <asm/cacheflush.h> |
13 | #include <asm/io.h> | 13 | #include <asm/io.h> |
14 | #include <asm/irq_handler.h> | ||
14 | 15 | ||
15 | /* Allow people to have their own Blackfin exception handler in a module */ | 16 | /* Allow people to have their own Blackfin exception handler in a module */ |
16 | EXPORT_SYMBOL(bfin_return_from_exception); | 17 | EXPORT_SYMBOL(bfin_return_from_exception); |
diff --git a/arch/blackfin/kernel/ipipe.c b/arch/blackfin/kernel/ipipe.c index f37019c847c9..486426f8a0d7 100644 --- a/arch/blackfin/kernel/ipipe.c +++ b/arch/blackfin/kernel/ipipe.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <asm/system.h> | 34 | #include <asm/system.h> |
35 | #include <asm/atomic.h> | 35 | #include <asm/atomic.h> |
36 | #include <asm/irq_handler.h> | ||
36 | 37 | ||
37 | DEFINE_PER_CPU(struct pt_regs, __ipipe_tick_regs); | 38 | DEFINE_PER_CPU(struct pt_regs, __ipipe_tick_regs); |
38 | 39 | ||
diff --git a/arch/blackfin/kernel/irqchip.c b/arch/blackfin/kernel/irqchip.c index 1696d34f51c2..ff3d747154ac 100644 --- a/arch/blackfin/kernel/irqchip.c +++ b/arch/blackfin/kernel/irqchip.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kallsyms.h> | 11 | #include <linux/kallsyms.h> |
12 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <asm/irq_handler.h> | ||
14 | #include <asm/trace.h> | 15 | #include <asm/trace.h> |
15 | #include <asm/pda.h> | 16 | #include <asm/pda.h> |
16 | 17 | ||
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index fac1ec365fbd..904a25d5e992 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/cpu.h> | 29 | #include <asm/cpu.h> |
30 | #include <asm/fixed_code.h> | 30 | #include <asm/fixed_code.h> |
31 | #include <asm/early_printk.h> | 31 | #include <asm/early_printk.h> |
32 | #include <asm/irq_handler.h> | ||
32 | 33 | ||
33 | u16 _bfin_swrst; | 34 | u16 _bfin_swrst; |
34 | EXPORT_SYMBOL(_bfin_swrst); | 35 | EXPORT_SYMBOL(_bfin_swrst); |
diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c index 1fbd94c44457..c0ac8e643361 100644 --- a/arch/blackfin/mach-common/smp.c +++ b/arch/blackfin/mach-common/smp.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <asm/atomic.h> | 26 | #include <asm/atomic.h> |
27 | #include <asm/cacheflush.h> | 27 | #include <asm/cacheflush.h> |
28 | #include <asm/irq_handler.h> | ||
28 | #include <asm/mmu_context.h> | 29 | #include <asm/mmu_context.h> |
29 | #include <asm/pgtable.h> | 30 | #include <asm/pgtable.h> |
30 | #include <asm/pgalloc.h> | 31 | #include <asm/pgalloc.h> |