]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: Remove unused shmobile_smp_init_cpus()
authorMagnus Damm <damm@opensource.se>
Wed, 7 Aug 2013 22:13:49 +0000 (07:13 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 21 Sep 2013 00:47:31 +0000 (17:47 -0700)
Remove shmobile_smp_init_cpus() since all SMP platforms in
mach-shmobile now rely on DT for CPU core description instead
of for instance determining number of cores from the SCU.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/platsmp.c

index 1ed155eb3e927ec2e968f3dbdcd1b425cc3998e5..26eaff1429bf650c920e11f67bfce1dc5f9d8f03 100644 (file)
@@ -40,7 +40,6 @@ static inline int shmobile_cpuidle_init(void) { return 0; }
 #endif
 
 extern void __iomem *shmobile_scu_base;
-extern void shmobile_smp_init_cpus(unsigned int ncores);
 
 static inline void __init shmobile_init_late(void)
 {
index 3741562156edcf10b47567b38d2267d49b0e2cf0..9ebc246b8d7dd7fc46505ba40691a0ff8e4dbb4f 100644 (file)
  * published by the Free Software Foundation.
  */
 #include <linux/init.h>
-#include <linux/smp.h>
 #include <asm/cacheflush.h>
 #include <asm/smp_plat.h>
 #include <mach/common.h>
 
-void __init shmobile_smp_init_cpus(unsigned int ncores)
-{
-       unsigned int i;
-
-       if (ncores > nr_cpu_ids) {
-               pr_warn("SMP: %u cores greater than maximum (%u), clipping\n",
-                       ncores, nr_cpu_ids);
-               ncores = nr_cpu_ids;
-       }
-
-       for (i = 0; i < ncores; i++)
-               set_cpu_possible(i, true);
-}
-
 extern unsigned long shmobile_smp_fn[];
 extern unsigned long shmobile_smp_arg[];
 extern unsigned long shmobile_smp_mpidr[];