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