diff options
| author | Peter Dufault <dufault@FreeBSD.org> | 1998-05-18 12:53:45 +0000 |
|---|---|---|
| committer | Peter Dufault <dufault@FreeBSD.org> | 1998-05-18 12:53:45 +0000 |
| commit | 2a61a11038bf7ba0c1f43e7265433847fc795773 (patch) | |
| tree | 5d466e12c85ce2afa09ed83cf8288559c429d52c /sys/kern/ksched.c | |
| parent | af9f1d50ae716ceeed4eba16b26ec5187e1813f5 (diff) | |
Notes
Diffstat (limited to 'sys/kern/ksched.c')
| -rw-r--r-- | sys/kern/ksched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/ksched.c b/sys/kern/ksched.c index fa66de573838..20c5c5754b3b 100644 --- a/sys/kern/ksched.c +++ b/sys/kern/ksched.c @@ -161,7 +161,7 @@ int ksched_setscheduler(int *ret, struct ksched *ksched, rtp.type = (policy == SCHED_FIFO) ? RTP_PRIO_FIFO : RTP_PRIO_REALTIME; - rtp.prio = p4prio_to_rtpprio(RTP_PRIO_MAX); + rtp.prio = p4prio_to_rtpprio(param->sched_priority); p->p_rtprio = rtp; (void)resetpriority(p); } @@ -174,7 +174,7 @@ int ksched_setscheduler(int *ret, struct ksched *ksched, case SCHED_OTHER: { rtp.type = RTP_PRIO_NORMAL; - rtp.prio = p4prio_to_rtpprio(RTP_PRIO_MIN); + rtp.prio = p4prio_to_rtpprio(param->sched_priority); p->p_rtprio = rtp; /* XXX Simply revert to whatever we had for last |
