diff options
author | Jeffrey Deans <jeffrey.deans@imgtec.com> | 2014-07-17 04:20:53 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-08-01 18:06:40 -0400 |
commit | 822350bc90c5069e9ab39f8720e2ef06af736124 (patch) | |
tree | efbee4563e331ee344dcc5495ab2c8e4088b5187 /arch/mips/kernel | |
parent | 6575b1d4173eaeff6742a2c6dcbd835bb052952b (diff) |
MIPS: GIC: move GIC interrupt bitmap declarations
Several bitmaps are declared in arch/mips/include/asm/gic.h, but the
scope of their use is limited to arch/mips/kernel/irq-gic.c. Move the
declarations from the header file to the C file.
Signed-off-by: Jeffrey Deans <jeffrey.deans@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7372/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/irq-gic.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/kernel/irq-gic.c b/arch/mips/kernel/irq-gic.c index 88e4c323382c..a1dea3ea59a0 100644 --- a/arch/mips/kernel/irq-gic.c +++ b/arch/mips/kernel/irq-gic.c | |||
@@ -28,6 +28,18 @@ unsigned int gic_irq_flags[GIC_NUM_INTRS]; | |||
28 | /* The index into this array is the vector # of the interrupt. */ | 28 | /* The index into this array is the vector # of the interrupt. */ |
29 | struct gic_shared_intr_map gic_shared_intr_map[GIC_NUM_INTRS]; | 29 | struct gic_shared_intr_map gic_shared_intr_map[GIC_NUM_INTRS]; |
30 | 30 | ||
31 | struct gic_pcpu_mask { | ||
32 | DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS); | ||
33 | }; | ||
34 | |||
35 | struct gic_pending_regs { | ||
36 | DECLARE_BITMAP(pending, GIC_NUM_INTRS); | ||
37 | }; | ||
38 | |||
39 | struct gic_intrmask_regs { | ||
40 | DECLARE_BITMAP(intrmask, GIC_NUM_INTRS); | ||
41 | }; | ||
42 | |||
31 | static struct gic_pcpu_mask pcpu_masks[NR_CPUS]; | 43 | static struct gic_pcpu_mask pcpu_masks[NR_CPUS]; |
32 | static struct gic_pending_regs pending_regs[NR_CPUS]; | 44 | static struct gic_pending_regs pending_regs[NR_CPUS]; |
33 | static struct gic_intrmask_regs intrmask_regs[NR_CPUS]; | 45 | static struct gic_intrmask_regs intrmask_regs[NR_CPUS]; |