aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-04 11:01:03 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-14 14:21:40 -0500
commit384895330e0f3954d9478fd0853145f9c169df12 (patch)
treec90f70f4e070b640a1f1f2a76cf4acf864354093 /arch/arm/common
parentb580b899dd05a007ad232ee49a07b32d91876462 (diff)
ARM: GIC: Remove MMIO address from gic_cpu_init, rename to gic_secondary_init
We don't need to re-pass the base address for the CPU interfaces to the GIC for secondary CPUs, as it will never be different from the boot CPU - and even if it was, we'd overwrite the boot CPU's base address. Get rid of this argument, and rename to gic_secondary_init(). Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Tested-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/gic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
index 8eab2f34a7fa..dd0d18d560ac 100644
--- a/arch/arm/common/gic.c
+++ b/arch/arm/common/gic.c
@@ -284,7 +284,7 @@ static void __init gic_dist_init(unsigned int gic_nr, void __iomem *base,
284 writel(1, base + GIC_DIST_CTRL); 284 writel(1, base + GIC_DIST_CTRL);
285} 285}
286 286
287void __cpuinit gic_cpu_init(unsigned int gic_nr, void __iomem *base) 287static void __cpuinit gic_cpu_init(unsigned int gic_nr, void __iomem *base)
288{ 288{
289 void __iomem *dist_base; 289 void __iomem *dist_base;
290 int i; 290 int i;
@@ -321,6 +321,11 @@ void __init gic_init(unsigned int gic_nr, unsigned int irq_start,
321 gic_cpu_init(gic_nr, cpu_base); 321 gic_cpu_init(gic_nr, cpu_base);
322} 322}
323 323
324void __cpuinit gic_secondary_init(unsigned int gic_nr)
325{
326 gic_cpu_init(gic_nr, gic_data[gic_nr].cpu_base);
327}
328
324#ifdef CONFIG_SMP 329#ifdef CONFIG_SMP
325void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) 330void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
326{ 331{