summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27/ip27-init.c
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-04-05 02:52:31 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-04-05 02:52:31 +0000
commit3e91b5dd87a280a583adcd976853c6f756a6d45e (patch)
treee4b0cc998dac1ed522394a15b51f35026432853e /arch/mips64/sgi-ip27/ip27-init.c
parent2b7356772dfa7871a4017311afa196e0f1855aaf (diff)
Fix UP compiles.
Diffstat (limited to 'arch/mips64/sgi-ip27/ip27-init.c')
-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