Skip to content

Commit

Permalink
irqchip: mips-gic: Remove gic_present
Browse files Browse the repository at this point in the history
Nothing uses the global gic_present variable anymore; mips_gic_present()
should be used instead. Remove the dead code.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17045/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Paul Burton authored and Ralf Baechle committed Sep 4, 2017
1 parent 72eb299 commit 56d7b61
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions drivers/irqchip/irq-mips-gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#define GIC_SHARED_TO_HWIRQ(x) (GIC_SHARED_HWIRQ_BASE + (x))
#define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE)

unsigned int gic_present;
void __iomem *mips_gic_base;

struct gic_pcpu_mask {
Expand Down Expand Up @@ -781,7 +780,6 @@ static int __init gic_of_init(struct device_node *node,
/* Ensure GIC region is enabled before trying to access it */
__sync();
}
gic_present = true;

__gic_init(gic_base, gic_len, cpu_vec, 0, node);

Expand Down
6 changes: 0 additions & 6 deletions include/linux/irqchip/mips-gic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,10 @@

#ifdef CONFIG_MIPS_GIC

extern unsigned int gic_present;

extern int gic_get_c0_compare_int(void);
extern int gic_get_c0_perfcount_int(void);
extern int gic_get_c0_fdc_int(void);

#else /* CONFIG_MIPS_GIC */

#define gic_present 0

#endif /* CONFIG_MIPS_GIC */

#endif /* __LINUX_IRQCHIP_MIPS_GIC_H */

0 comments on commit 56d7b61

Please sign in to comment.