summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips64/sgi-ip27/ip27-init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-init.c b/arch/mips64/sgi-ip27/ip27-init.c
index e866d6571..fa008dcb6 100644
--- a/arch/mips64/sgi-ip27/ip27-init.c
+++ b/arch/mips64/sgi-ip27/ip27-init.c
@@ -154,9 +154,11 @@ void alloc_cpupda(int i)
node = get_cpu_cnode(i);
nasid = COMPACT_TO_NASID_NODEID(node);
+#ifdef CONFIG_SMP
cputonasid(i) = nasid;
cputocnode(i) = node;
cputoslice(i) = get_cpu_slice(i);
+#endif
}
int cpu_enabled(cpuid_t cpu)
@@ -279,6 +281,7 @@ void per_cpu_init(void)
#endif
}
+
static atomic_t numstarted = ATOMIC_INIT(0);
void cboot(void)
{
@@ -287,6 +290,8 @@ void cboot(void)
while(1);
}
+#ifdef CONFIG_SMP
+
static long bootstacks[MAXCPUS][128];
void allowboot(void)
@@ -347,3 +352,5 @@ void allowboot(void)
init_mfhi_war();
#endif
}
+
+#endif