diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-22 00:32:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-22 00:32:13 +0000 |
commit | a05021f4359ec32c4c1ca41547a1a8f480b5133c (patch) | |
tree | 4aae896f36b0c7b1afe58c5f50a82984716b04a8 /sys/kern | |
parent | 65856928608430b7102a8749b4af122de79587c3 (diff) | |
download | FreeBSD-src-a05021f4359ec32c4c1ca41547a1a8f480b5133c.zip FreeBSD-src-a05021f4359ec32c4c1ca41547a1a8f480b5133c.tar.gz |
- Use the new NOCPU constant.
- Fix a warning.
Noticed by: bde (2)
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_synch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 1f21422..2e244a0 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -286,7 +286,7 @@ schedcpu(arg) if (p->p_pri.pri_level >= PUSER) { if ((p != curproc) && #ifdef SMP - p->p_oncpu == 0xff && /* idle */ + p->p_oncpu == NOCPU && /* idle */ #endif p->p_stat == SRUN && (p->p_sflag & PS_INMEM) && @@ -930,7 +930,7 @@ mi_switch() cpu_switch(); curproc->p_oncpu = PCPU_GET(cpuid); sched_lock.mtx_recurse = sched_nest; - sched_lock.mtx_lock = curproc; + sched_lock.mtx_lock = (uintptr_t)curproc; CTR4(KTR_PROC, "mi_switch: new proc %p (pid %d, %s), schedlock %p", p, p->p_pid, p->p_comm, (void *) sched_lock.mtx_lock); if (PCPU_GET(switchtime.tv_sec) == 0) |