From 3e91b5dd87a280a583adcd976853c6f756a6d45e Mon Sep 17 00:00:00 2001 From: Kanoj Sarcar Date: Wed, 5 Apr 2000 02:52:31 +0000 Subject: Fix UP compiles. --- arch/mips64/sgi-ip27/ip27-init.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch') 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 -- cgit v1.2.3