diff options
| author | Marc Zyngier <marc.zyngier@arm.com> | 2015-10-13 07:51:39 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2015-10-13 13:01:24 -0400 |
| commit | e81a7cd96bd55bb57d92486c514b7b8f8c8cd8ce (patch) | |
| tree | 541bcac9f4677e5835d96e9ef4c47da7505b3f7a | |
| parent | 2bc6eba4a322e70eac8cde76442c4ac90699fb39 (diff) | |
irqchip/gic: Get rid of gic_init_bases()
Since nobody is using gic_init_bases anymore outside of the GIC
driver itself, let's do a bit of housekeeping and remove the now
useless entry point.
Only gic_init() is now exposed to the rest of the kernel for the
benefit of legacy systems.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-and-tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Graeme Gregory <graeme@xora.org.uk>
Cc: Jake Oshins <jakeo@microsoft.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Link: http://lkml.kernel.org/r/1444737105-31573-12-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
| -rw-r--r-- | drivers/irqchip/irq-gic.c | 8 | ||||
| -rw-r--r-- | include/linux/irqchip/arm-gic.h | 9 |
2 files changed, 5 insertions, 12 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 9262bb9b442b..12b2973530ed 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c | |||
| @@ -1127,17 +1127,15 @@ static void __init __gic_init_bases(unsigned int gic_nr, int irq_start, | |||
| 1127 | gic_pm_init(gic); | 1127 | gic_pm_init(gic); |
| 1128 | } | 1128 | } |
| 1129 | 1129 | ||
| 1130 | void __init gic_init_bases(unsigned int gic_nr, int irq_start, | 1130 | void __init gic_init(unsigned int gic_nr, int irq_start, |
| 1131 | void __iomem *dist_base, void __iomem *cpu_base, | 1131 | void __iomem *dist_base, void __iomem *cpu_base) |
| 1132 | u32 percpu_offset, struct device_node *node) | ||
| 1133 | { | 1132 | { |
| 1134 | /* | 1133 | /* |
| 1135 | * Non-DT/ACPI systems won't run a hypervisor, so let's not | 1134 | * Non-DT/ACPI systems won't run a hypervisor, so let's not |
| 1136 | * bother with these... | 1135 | * bother with these... |
| 1137 | */ | 1136 | */ |
| 1138 | static_key_slow_dec(&supports_deactivate); | 1137 | static_key_slow_dec(&supports_deactivate); |
| 1139 | __gic_init_bases(gic_nr, irq_start, dist_base, cpu_base, | 1138 | __gic_init_bases(gic_nr, irq_start, dist_base, cpu_base, 0, NULL); |
| 1140 | percpu_offset, node); | ||
| 1141 | } | 1139 | } |
| 1142 | 1140 | ||
| 1143 | #ifdef CONFIG_OF | 1141 | #ifdef CONFIG_OF |
diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h index b8901dfd9e95..bae69e5d693c 100644 --- a/include/linux/irqchip/arm-gic.h +++ b/include/linux/irqchip/arm-gic.h | |||
| @@ -100,16 +100,11 @@ | |||
| 100 | 100 | ||
| 101 | struct device_node; | 101 | struct device_node; |
| 102 | 102 | ||
| 103 | void gic_init_bases(unsigned int, int, void __iomem *, void __iomem *, | ||
| 104 | u32 offset, struct device_node *); | ||
| 105 | void gic_cascade_irq(unsigned int gic_nr, unsigned int irq); | 103 | void gic_cascade_irq(unsigned int gic_nr, unsigned int irq); |
| 106 | int gic_cpu_if_down(unsigned int gic_nr); | 104 | int gic_cpu_if_down(unsigned int gic_nr); |
| 107 | 105 | ||
| 108 | static inline void gic_init(unsigned int nr, int start, | 106 | void gic_init(unsigned int nr, int start, |
| 109 | void __iomem *dist , void __iomem *cpu) | 107 | void __iomem *dist , void __iomem *cpu); |
| 110 | { | ||
| 111 | gic_init_bases(nr, start, dist, cpu, 0, NULL); | ||
| 112 | } | ||
| 113 | 108 | ||
| 114 | int gicv2m_of_init(struct device_node *node, struct irq_domain *parent); | 109 | int gicv2m_of_init(struct device_node *node, struct irq_domain *parent); |
| 115 | 110 | ||
