kernel: get rid of active.Lock and active.thunderbirdsargo
This commit is contained in:
parent
a7f8ebca2f
commit
8177d20fb2
|
@ -222,7 +222,6 @@ typedef void KMap;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* active CPUs */
|
char machs[MAXMACH]; /* active CPUs */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
}active;
|
}active;
|
||||||
|
|
|
@ -193,7 +193,6 @@ typedef void KMap;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* active CPUs */
|
char machs[MAXMACH]; /* active CPUs */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
}active;
|
}active;
|
||||||
|
|
|
@ -180,7 +180,6 @@ struct Mach
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH];
|
char machs[MAXMACH];
|
||||||
int exiting;
|
int exiting;
|
||||||
}active;
|
}active;
|
||||||
|
|
|
@ -215,7 +215,6 @@ typedef void KMap;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* active CPUs */
|
char machs[MAXMACH]; /* active CPUs */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
}active;
|
}active;
|
||||||
|
|
|
@ -269,10 +269,8 @@ void kunmap(KMap*);
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* active CPUs */
|
char machs[MAXMACH]; /* active CPUs */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
int thunderbirdsarego; /* lets the added processors continue to schedinit */
|
|
||||||
}active;
|
}active;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -167,7 +167,6 @@ main(void)
|
||||||
pageinit();
|
pageinit();
|
||||||
swapinit();
|
swapinit();
|
||||||
userinit();
|
userinit();
|
||||||
active.thunderbirdsarego = 1;
|
|
||||||
schedinit();
|
schedinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -232,10 +232,8 @@ typedef void KMap;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* bitmap of active CPUs */
|
char machs[MAXMACH]; /* bitmap of active CPUs */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
int thunderbirdsarego; /* lets the added processors continue to schedinit */
|
|
||||||
}active;
|
}active;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -518,7 +518,6 @@ main()
|
||||||
pageinit();
|
pageinit();
|
||||||
swapinit();
|
swapinit();
|
||||||
userinit();
|
userinit();
|
||||||
active.thunderbirdsarego = 1;
|
|
||||||
schedinit();
|
schedinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1008,11 +1008,9 @@ cpushutdown(void)
|
||||||
{
|
{
|
||||||
int ms, once;
|
int ms, once;
|
||||||
|
|
||||||
lock(&active);
|
|
||||||
once = active.machs[m->machno];
|
once = active.machs[m->machno];
|
||||||
active.machs[m->machno] = 0;
|
active.machs[m->machno] = 0;
|
||||||
active.exiting = 1;
|
active.exiting = 1;
|
||||||
unlock(&active);
|
|
||||||
|
|
||||||
if(once)
|
if(once)
|
||||||
iprint("cpu%d: exiting\n", m->machno);
|
iprint("cpu%d: exiting\n", m->machno);
|
||||||
|
|
|
@ -188,7 +188,6 @@ struct Mach
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH];
|
char machs[MAXMACH];
|
||||||
int exiting;
|
int exiting;
|
||||||
}active;
|
}active;
|
||||||
|
|
|
@ -203,7 +203,6 @@ struct Softtlb
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* active cpus */
|
char machs[MAXMACH]; /* active cpus */
|
||||||
short exiting;
|
short exiting;
|
||||||
}active;
|
}active;
|
||||||
|
|
|
@ -250,7 +250,6 @@ struct
|
||||||
int wfi; /* bitmap of CPUs in WFI state */
|
int wfi; /* bitmap of CPUs in WFI state */
|
||||||
int stopped; /* bitmap of CPUs stopped */
|
int stopped; /* bitmap of CPUs stopped */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
int thunderbirdsarego; /* lets the added processors continue to schedinit */
|
|
||||||
}active;
|
}active;
|
||||||
|
|
||||||
extern register Mach* m; /* R10 */
|
extern register Mach* m; /* R10 */
|
||||||
|
|
|
@ -106,7 +106,6 @@ main(void)
|
||||||
|
|
||||||
swapinit();
|
swapinit();
|
||||||
userinit();
|
userinit();
|
||||||
active.thunderbirdsarego = 1;
|
|
||||||
schedinit();
|
schedinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,6 @@ struct ISAConf
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Lock;
|
|
||||||
char machs[MAXMACH]; /* active CPUs */
|
char machs[MAXMACH]; /* active CPUs */
|
||||||
int exiting; /* shutdown */
|
int exiting; /* shutdown */
|
||||||
}active;
|
}active;
|
||||||
|
|
Loading…
Reference in a new issue