|
@@ -50,14 +50,6 @@ static void __iomem *scu_base_addr(void)
|
|
|
return (void __iomem *)0;
|
|
|
}
|
|
|
|
|
|
-static inline unsigned int get_core_count(void)
|
|
|
-{
|
|
|
- void __iomem *scu_base = scu_base_addr();
|
|
|
- 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)
|
|
@@ -158,7 +150,10 @@ static void __init poke_milo(void)
|
|
|
*/
|
|
|
void __init smp_init_cpus(void)
|
|
|
{
|
|
|
- unsigned int i, ncores = get_core_count();
|
|
|
+ void __iomem *scu_base = scu_base_addr();
|
|
|
+ unsigned int i, ncores;
|
|
|
+
|
|
|
+ ncores = scu_base ? scu_get_core_count(scu_base) : 1;
|
|
|
|
|
|
/* sanity check */
|
|
|
if (ncores > NR_CPUS) {
|