kernel: get rid of active.Lock and active.thunderbirdsargo

front
cinap_lenrek 2017-03-11 16:30:51 +01:00
parent a7f8ebca2f
commit 8177d20fb2
14 changed files with 0 additions and 17 deletions

View File

@ -222,7 +222,6 @@ typedef void KMap;
struct
{
Lock;
char machs[MAXMACH]; /* active CPUs */
int exiting; /* shutdown */
}active;

View File

@ -193,7 +193,6 @@ typedef void KMap;
struct
{
Lock;
char machs[MAXMACH]; /* active CPUs */
int exiting; /* shutdown */
}active;

View File

@ -180,7 +180,6 @@ struct Mach
struct
{
Lock;
char machs[MAXMACH];
int exiting;
}active;

View File

@ -215,7 +215,6 @@ typedef void KMap;
struct
{
Lock;
char machs[MAXMACH]; /* active CPUs */
int exiting; /* shutdown */
}active;

View File

@ -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;
/*

View File

@ -167,7 +167,6 @@ main(void)
pageinit();
swapinit();
userinit();
active.thunderbirdsarego = 1;
schedinit();
}

View File

@ -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;
/*

View File

@ -518,7 +518,6 @@ main()
pageinit();
swapinit();
userinit();
active.thunderbirdsarego = 1;
schedinit();
}

View File

@ -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);

View File

@ -188,7 +188,6 @@ struct Mach
struct
{
Lock;
char machs[MAXMACH];
int exiting;
}active;

View File

@ -203,7 +203,6 @@ struct Softtlb
struct
{
Lock;
char machs[MAXMACH]; /* active cpus */
short exiting;
}active;

View File

@ -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 */

View File

@ -106,7 +106,6 @@ main(void)
swapinit();
userinit();
active.thunderbirdsarego = 1;
schedinit();
}

View File

@ -174,7 +174,6 @@ struct ISAConf
struct
{
Lock;
char machs[MAXMACH]; /* active CPUs */
int exiting; /* shutdown */
}active;