diff options
Diffstat (limited to 'sys/kern/ksched.c')
-rw-r--r-- | sys/kern/ksched.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/ksched.c b/sys/kern/ksched.c index b729ccf..dbdc174 100644 --- a/sys/kern/ksched.c +++ b/sys/kern/ksched.c @@ -175,7 +175,7 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched, mtx_lock_spin(&sched_lock); rtp_to_pri(&rtp, &p->p_pri); - need_resched(); + need_resched(p); mtx_unlock_spin(&sched_lock); } else @@ -197,7 +197,7 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched, * on the scheduling code: You must leave the * scheduling info alone. */ - need_resched(); + need_resched(p); mtx_unlock_spin(&sched_lock); } break; @@ -216,7 +216,7 @@ int ksched_getscheduler(register_t *ret, struct ksched *ksched, struct proc *p) int ksched_yield(register_t *ret, struct ksched *ksched) { mtx_lock_spin(&sched_lock); - need_resched(); + need_resched(curproc); mtx_unlock_spin(&sched_lock); return 0; } |