diff options
author | Magnus Damm <damm@opensource.se> | 2013-02-12 10:45:25 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-12 13:13:18 -0400 |
commit | 0ae56a951de0efbf36a51de5b2e91db10425c771 (patch) | |
tree | 3f6ebbaaf3e2d4ce8940af73e6eaddaed35fc135 /arch/arm/mach-shmobile/smp-r8a7779.c | |
parent | f313ae4e98f2c0825a5a808e4b822214836b5085 (diff) |
ARM: shmobile: Remove r8a7779_get_core_count()
Reduce the number of lines of code in smp-r8a7779.c
by getting rid of the r8a7779_get_core_count() function.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/smp-r8a7779.c')
-rw-r--r-- | arch/arm/mach-shmobile/smp-r8a7779.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-shmobile/smp-r8a7779.c b/arch/arm/mach-shmobile/smp-r8a7779.c index 3a4acf23edcf..f46b51658c3a 100644 --- a/arch/arm/mach-shmobile/smp-r8a7779.c +++ b/arch/arm/mach-shmobile/smp-r8a7779.c | |||
@@ -87,13 +87,6 @@ static void modify_scu_cpu_psr(unsigned long set, unsigned long clr) | |||
87 | __raw_writel(tmp, scu_base + 8); | 87 | __raw_writel(tmp, scu_base + 8); |
88 | } | 88 | } |
89 | 89 | ||
90 | static unsigned int __init r8a7779_get_core_count(void) | ||
91 | { | ||
92 | void __iomem *scu_base = scu_base_addr(); | ||
93 | |||
94 | return scu_get_core_count(scu_base); | ||
95 | } | ||
96 | |||
97 | static int r8a7779_platform_cpu_kill(unsigned int cpu) | 90 | static int r8a7779_platform_cpu_kill(unsigned int cpu) |
98 | { | 91 | { |
99 | struct r8a7779_pm_ch *ch = NULL; | 92 | struct r8a7779_pm_ch *ch = NULL; |
@@ -178,7 +171,7 @@ static void __init r8a7779_smp_prepare_cpus(unsigned int max_cpus) | |||
178 | 171 | ||
179 | static void __init r8a7779_smp_init_cpus(void) | 172 | static void __init r8a7779_smp_init_cpus(void) |
180 | { | 173 | { |
181 | unsigned int ncores = r8a7779_get_core_count(); | 174 | unsigned int ncores = scu_get_core_count(scu_base_addr()); |
182 | 175 | ||
183 | shmobile_smp_init_cpus(ncores); | 176 | shmobile_smp_init_cpus(ncores); |
184 | } | 177 | } |