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

This commit is contained in:
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 struct
{ {
Lock;
char machs[MAXMACH]; /* active CPUs */ char machs[MAXMACH]; /* active CPUs */
int exiting; /* shutdown */ int exiting; /* shutdown */
}active; }active;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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