diff options
Diffstat (limited to 'sys/kern/kern_switch.c')
| -rw-r--r-- | sys/kern/kern_switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 60024b085baf..7515ea8b576a 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -232,12 +232,12 @@ chooseproc(void) } else { CTR1(KTR_PROC, "chooseproc: idleproc, schedlock %lx", (long)sched_lock.mtx_lock); - return idleproc; + return PCPU_GET(idleproc); } p = TAILQ_FIRST(q); #ifdef SMP /* wander down the current run queue for this pri level for a match */ - id = cpuid; + id = PCPU_GET(cpuid); while (p->p_lastcpu != id) { p = TAILQ_NEXT(p, p_procq); if (p == NULL) { |
