diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-02-22 00:32:13 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-02-22 00:32:13 +0000 |
| commit | 5a93f3e851b70dd75f82390eadc56a3fe01f15df (patch) | |
| tree | 4df5f3103a51f899005ebab7481f1e319eeef458 /sys/kern/kern_synch.c | |
| parent | 76bd604e7daf64e6b4e59653b07203cde529fd69 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
| -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 1f21422f07e5..2e244a060375 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) |
