Skip to content

Commit 56d7b61

Browse files
paulburtonralfbaechle
authored andcommitted
irqchip: mips-gic: Remove gic_present
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>
1 parent 72eb299 commit 56d7b61

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎drivers/irqchip/irq-mips-gic.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#define GIC_SHARED_TO_HWIRQ(x) (GIC_SHARED_HWIRQ_BASE + (x))
4040
#define GIC_HWIRQ_TO_SHARED(x) ((x) - GIC_SHARED_HWIRQ_BASE)
4141

42-
unsigned int gic_present;
4342
void __iomem *mips_gic_base;
4443

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

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

‎include/linux/irqchip/mips-gic.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,10 @@
1717

1818
#ifdef CONFIG_MIPS_GIC
1919

20-
extern unsigned int gic_present;
21-
2220
extern int gic_get_c0_compare_int(void);
2321
extern int gic_get_c0_perfcount_int(void);
2422
extern int gic_get_c0_fdc_int(void);
2523

26-
#else /* CONFIG_MIPS_GIC */
27-
28-
#define gic_present 0
29-
3024
#endif /* CONFIG_MIPS_GIC */
3125

3226
#endif /* __LINUX_IRQCHIP_MIPS_GIC_H */

0 commit comments

Comments
 (0)