- Use the NOCPU constant.

- Move the ithread spin locks before sched lock and clk in preparation for
  future commits to the ithread code.
This commit is contained in:
John Baldwin 2001-02-22 02:12:54 +00:00
parent 9764c9d36e
commit 25d209f260
3 changed files with 9 additions and 9 deletions

View File

@ -212,7 +212,7 @@ propagate_priority(struct proc *p)
/*
* If lock holder is actually running, just bump priority.
*/
if (p->p_oncpu != 0xff) {
if (p->p_oncpu != NOCPU) {
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB);
return;
}
@ -932,6 +932,8 @@ static char *spin_order_list[] = {
#ifdef __i386__
"cy",
#endif
"ithread table lock",
"ithread list lock",
"sched lock",
#ifdef __i386__
"clk",
@ -940,8 +942,6 @@ static char *spin_order_list[] = {
/*
* leaf locks
*/
"ithread table lock",
"ithread list lock",
#ifdef SMP
#ifdef __i386__
"ap boot",

View File

@ -212,7 +212,7 @@ propagate_priority(struct proc *p)
/*
* If lock holder is actually running, just bump priority.
*/
if (p->p_oncpu != 0xff) {
if (p->p_oncpu != NOCPU) {
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB);
return;
}
@ -932,6 +932,8 @@ static char *spin_order_list[] = {
#ifdef __i386__
"cy",
#endif
"ithread table lock",
"ithread list lock",
"sched lock",
#ifdef __i386__
"clk",
@ -940,8 +942,6 @@ static char *spin_order_list[] = {
/*
* leaf locks
*/
"ithread table lock",
"ithread list lock",
#ifdef SMP
#ifdef __i386__
"ap boot",

View File

@ -212,7 +212,7 @@ propagate_priority(struct proc *p)
/*
* If lock holder is actually running, just bump priority.
*/
if (p->p_oncpu != 0xff) {
if (p->p_oncpu != NOCPU) {
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB);
return;
}
@ -932,6 +932,8 @@ static char *spin_order_list[] = {
#ifdef __i386__
"cy",
#endif
"ithread table lock",
"ithread list lock",
"sched lock",
#ifdef __i386__
"clk",
@ -940,8 +942,6 @@ static char *spin_order_list[] = {
/*
* leaf locks
*/
"ithread table lock",
"ithread list lock",
#ifdef SMP
#ifdef __i386__
"ap boot",