]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ARM: shmobile: Remove sh73a0_get_core_count()
authorMagnus Damm <damm@opensource.se>
Tue, 12 Feb 2013 15:45:16 +0000 (00:45 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 12 Mar 2013 17:13:18 +0000 (02:13 +0900)
Reduce the number of lines of code in smp-sh73a0.c
by getting rid of the sh73a0_get_core_count() function.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/smp-sh73a0.c

index acb46a94ccdfb8ec967ed5e52e5a9593f531c414..81c0f4ba18462fa05970b00b0a36d1c21d3dd30f 100644 (file)
@@ -52,13 +52,6 @@ void __init sh73a0_register_twd(void)
 }
 #endif
 
-static unsigned int __init sh73a0_get_core_count(void)
-{
-       void __iomem *scu_base = scu_base_addr();
-
-       return scu_get_core_count(scu_base);
-}
-
 static void __cpuinit sh73a0_secondary_init(unsigned int cpu)
 {
        gic_secondary_init(0);
@@ -90,7 +83,7 @@ static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus)
 
 static void __init sh73a0_smp_init_cpus(void)
 {
-       unsigned int ncores = sh73a0_get_core_count();
+       unsigned int ncores = scu_get_core_count(scu_base_addr());
 
        shmobile_smp_init_cpus(ncores);
 }