aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap-smp.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-02 18:09:37 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 15:08:27 +0000
commitfd778f0ad7dda1108281410ddca0d07936256d3c (patch)
treefe85b4ab73930c9fc0ad761dffd2d9394f2e1452 /arch/arm/mach-omap2/omap-smp.c
parent8975b6c0fdd57e061f4d1040163778ceaf340ad8 (diff)
downloadkernel_samsung_smdk4412-fd778f0ad7dda1108281410ddca0d07936256d3c.zip
kernel_samsung_smdk4412-fd778f0ad7dda1108281410ddca0d07936256d3c.tar.gz
kernel_samsung_smdk4412-fd778f0ad7dda1108281410ddca0d07936256d3c.tar.bz2
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-omap2/omap-smp.c')
-rw-r--r--arch/arm/mach-omap2/omap-smp.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c
index 5f10f38..405a8fc 100644
--- a/arch/arm/mach-omap2/omap-smp.c
+++ b/arch/arm/mach-omap2/omap-smp.c
@@ -29,16 +29,6 @@
/* SCU base address */
static void __iomem *scu_base;
-/*
- * Use SCU config register to count number of cores
- */
-static inline unsigned int get_core_count(void)
-{
- if (scu_base)
- return scu_get_core_count(scu_base);
- return 1;
-}
-
static DEFINE_SPINLOCK(boot_lock);
void __cpuinit platform_secondary_init(unsigned int cpu)
@@ -118,7 +108,7 @@ void __init smp_init_cpus(void)
scu_base = ioremap(OMAP44XX_SCU_BASE, SZ_256);
BUG_ON(!scu_base);
- ncores = get_core_count();
+ ncores = scu_get_core_count(scu_base);
/* sanity check */
if (ncores > NR_CPUS) {