diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-22 02:12:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-22 02:12:54 +0000 |
commit | f871fe72508f24891865cb9150d361dc749e1af3 (patch) | |
tree | 6833a7a5999a58d67398e9cb373f26b71e5868cb /sys/kern/kern_mutex.c | |
parent | c5479c262ccf473a4783fec4f63b7c62a31a3afa (diff) | |
download | FreeBSD-src-f871fe72508f24891865cb9150d361dc749e1af3.zip FreeBSD-src-f871fe72508f24891865cb9150d361dc749e1af3.tar.gz |
- Use the NOCPU constant.
- Move the ithread spin locks before sched lock and clk in preparation for
future commits to the ithread code.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 6d7b103..cbc0dea 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -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", |