summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter H. Froehlich <[email protected]>2015-10-03 04:43:05 -0400
committerFrans Kaashoek <[email protected]>2016-08-18 11:25:44 -0400
commit2a117310b5d5fa5e62e7fc8d6d844e5375a2bf65 (patch)
tree1a1fc35f3f699c5f77e49e6579d057ad966d1fab
parent216fdf846f17192ce02e221a0c7d67277f3cd664 (diff)
downloadxv6-labs-2a117310b5d5fa5e62e7fc8d6d844e5375a2bf65.tar.gz
xv6-labs-2a117310b5d5fa5e62e7fc8d6d844e5375a2bf65.tar.bz2
xv6-labs-2a117310b5d5fa5e62e7fc8d6d844e5375a2bf65.zip
Removed useless variable.
-rw-r--r--mp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mp.c b/mp.c
index b7ac5c3..224b1bd 100644
--- a/mp.c
+++ b/mp.c
@@ -12,7 +12,6 @@
#include "proc.h"
struct cpu cpus[NCPU];
-static struct cpu *bcpu;
int ismp;
int ncpu;
uchar ioapicid;
@@ -99,7 +98,6 @@ mpinit(void)
struct mpproc *proc;
struct mpioapic *ioapic;
- bcpu = &cpus[0];
if((conf = mpconfig(&mp)) == 0)
return;
ismp = 1;
@@ -112,8 +110,6 @@ mpinit(void)
cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid);
ismp = 0;
}
- if(proc->flags & MPBOOT)
- bcpu = &cpus[ncpu];
cpus[ncpu].id = ncpu;
ncpu++;
p += sizeof(struct mpproc);