]> Devi Nivas Git - cs3210-lab1.git/commitdiff
Removed useless variable.
authorPeter H. Froehlich <peter.hans.froehlich@gmail.com>
Sat, 3 Oct 2015 08:43:05 +0000 (04:43 -0400)
committerFrans Kaashoek <kaashoek@mit.edu>
Thu, 18 Aug 2016 15:25:44 +0000 (11:25 -0400)
mp.c

diff --git a/mp.c b/mp.c
index b7ac5c3f536368bb9bd69d5f29ac82de9564aaba..224b1bdc3630720c7c44f4a5ee3a437887a9141b 100644 (file)
--- 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);