mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Use newkg to check if SCHED_OTHER is already inherited.
This commit is contained in:
parent
888965d6f9
commit
a94d3e1f8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160289
@ -229,8 +229,7 @@ create_thread(struct thread *td, mcontext_t *ctx,
|
||||
sched_prio(newtd, newkg->kg_user_pri);
|
||||
break;
|
||||
case SCHED_OTHER:
|
||||
if (curthread->td_ksegrp->kg_pri_class !=
|
||||
PRI_TIMESHARE) {
|
||||
if (newkg->kg_pri_class != PRI_TIMESHARE) {
|
||||
rtp.type = PRI_TIMESHARE;
|
||||
rtp.prio = 0;
|
||||
rtp_to_pri(&rtp, newkg);
|
||||
|
Loading…
Reference in New Issue
Block a user