summaryrefslogtreecommitdiff
path: root/sys/kern/ksched.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-08-10 22:53:32 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-08-10 22:53:32 +0000
commit688ebe120c47c9478446c12022b5e4667c2bff7a (patch)
tree1798843f61bbf42ad4e659497c23572b272969ca /sys/kern/ksched.c
parent827dcaf663a0a66fd738e030d6c5ecd435a35380 (diff)
Notes
Diffstat (limited to 'sys/kern/ksched.c')
-rw-r--r--sys/kern/ksched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/ksched.c b/sys/kern/ksched.c
index c7f746a13b98..c7b6dd38d3e7 100644
--- a/sys/kern/ksched.c
+++ b/sys/kern/ksched.c
@@ -176,7 +176,7 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched,
mtx_lock_spin(&sched_lock);
rtp_to_pri(&rtp, &p->p_pri);
- need_resched(p);
+ p->p_sflag |= PS_NEEDRESCHED;
mtx_unlock_spin(&sched_lock);
}
else
@@ -198,7 +198,7 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched,
* on the scheduling code: You must leave the
* scheduling info alone.
*/
- need_resched(p);
+ p->p_sflag |= PS_NEEDRESCHED;
mtx_unlock_spin(&sched_lock);
}
break;
@@ -217,7 +217,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(curproc);
+ curproc->p_sflag |= PS_NEEDRESCHED;
mtx_unlock_spin(&sched_lock);
return 0;
}