Removed useless variable.
This commit is contained in:
parent
216fdf846f
commit
2a117310b5
1 changed files with 0 additions and 4 deletions
4
mp.c
4
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);
|
||||
|
|
Loading…
Reference in a new issue