diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-02 13:09:37 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-20 10:08:27 -0500 |
commit | fd778f0ad7dda1108281410ddca0d07936256d3c (patch) | |
tree | fe85b4ab73930c9fc0ad761dffd2d9394f2e1452 /arch/arm/mach-ux500 | |
parent | 8975b6c0fdd57e061f4d1040163778ceaf340ad8 (diff) |
ARM: SMP: get rid of get_core_count()
We don't need this small function as well as scu_get_core_count()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/platsmp.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-ux500/platsmp.c b/arch/arm/mach-ux500/platsmp.c index e31024e3a7cc..fd40fa175913 100644 --- a/arch/arm/mach-ux500/platsmp.c +++ b/arch/arm/mach-ux500/platsmp.c | |||
@@ -28,11 +28,6 @@ | |||
28 | */ | 28 | */ |
29 | volatile int __cpuinitdata pen_release = -1; | 29 | volatile int __cpuinitdata pen_release = -1; |
30 | 30 | ||
31 | static unsigned int __init get_core_count(void) | ||
32 | { | ||
33 | return scu_get_core_count(__io_address(UX500_SCU_BASE)); | ||
34 | } | ||
35 | |||
36 | static DEFINE_SPINLOCK(boot_lock); | 31 | static DEFINE_SPINLOCK(boot_lock); |
37 | 32 | ||
38 | void __cpuinit platform_secondary_init(unsigned int cpu) | 33 | void __cpuinit platform_secondary_init(unsigned int cpu) |
@@ -126,7 +121,9 @@ static void __init wakeup_secondary(void) | |||
126 | */ | 121 | */ |
127 | void __init smp_init_cpus(void) | 122 | void __init smp_init_cpus(void) |
128 | { | 123 | { |
129 | unsigned int i, ncores = get_core_count(); | 124 | unsigned int i, ncores; |
125 | |||
126 | ncores = scu_get_core_count(__io_address(UX500_SCU_BASE)); | ||
130 | 127 | ||
131 | /* sanity check */ | 128 | /* sanity check */ |
132 | if (ncores > NR_CPUS) { | 129 | if (ncores > NR_CPUS) { |