diff options
author | Magnus Damm <damm@opensource.se> | 2013-02-12 10:45:16 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-12 13:13:18 -0400 |
commit | f313ae4e98f2c0825a5a808e4b822214836b5085 (patch) | |
tree | 7d0375e9c9ed848475d6f474d9812a2ab5e0e00c | |
parent | da252b8ee542e95d35374b1d31006f8fe5d59f6a (diff) |
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: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/mach-shmobile/smp-sh73a0.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-shmobile/smp-sh73a0.c b/arch/arm/mach-shmobile/smp-sh73a0.c index acb46a94ccdf..81c0f4ba1846 100644 --- a/arch/arm/mach-shmobile/smp-sh73a0.c +++ b/arch/arm/mach-shmobile/smp-sh73a0.c | |||
@@ -52,13 +52,6 @@ void __init sh73a0_register_twd(void) | |||
52 | } | 52 | } |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | static unsigned int __init sh73a0_get_core_count(void) | ||
56 | { | ||
57 | void __iomem *scu_base = scu_base_addr(); | ||
58 | |||
59 | return scu_get_core_count(scu_base); | ||
60 | } | ||
61 | |||
62 | static void __cpuinit sh73a0_secondary_init(unsigned int cpu) | 55 | static void __cpuinit sh73a0_secondary_init(unsigned int cpu) |
63 | { | 56 | { |
64 | gic_secondary_init(0); | 57 | gic_secondary_init(0); |
@@ -90,7 +83,7 @@ static void __init sh73a0_smp_prepare_cpus(unsigned int max_cpus) | |||
90 | 83 | ||
91 | static void __init sh73a0_smp_init_cpus(void) | 84 | static void __init sh73a0_smp_init_cpus(void) |
92 | { | 85 | { |
93 | unsigned int ncores = sh73a0_get_core_count(); | 86 | unsigned int ncores = scu_get_core_count(scu_base_addr()); |
94 | 87 | ||
95 | shmobile_smp_init_cpus(ncores); | 88 | shmobile_smp_init_cpus(ncores); |
96 | } | 89 | } |