Commit f313ae4e authored by Magnus Damm's avatar Magnus Damm Committed by Simon Horman

ARM: shmobile: Remove sh73a0_get_core_count()

Reduce the number of lines of code in smp-sh73a0.c
by getting rid of the sh73a0_get_core_count() function.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent da252b8e
...@@ -52,13 +52,6 @@ void __init sh73a0_register_twd(void) ...@@ -52,13 +52,6 @@ void __init sh73a0_register_twd(void)
} }
#endif #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) static void __cpuinit sh73a0_secondary_init(unsigned int cpu)
{ {
gic_secondary_init(0); gic_secondary_init(0);
...@@ -90,7 +83,7 @@ static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus) ...@@ -90,7 +83,7 @@ static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus)
static void __init sh73a0_smp_init_cpus(void) 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); shmobile_smp_init_cpus(ncores);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment