sched_ule: Use the correct atomic_load variant for tdq_lowpri
Reported by: tuexen
Fixes: 11484ad8a2
("sched_ule: Use explicit atomic accesses for tdq fields")
This commit is contained in:
parent
11484ad8a2
commit
6cbc4ceb7a
@ -1360,7 +1360,7 @@ sched_pickcpu(struct thread *td, int flags)
|
||||
* expired and it is idle, run it there.
|
||||
*/
|
||||
if (THREAD_CAN_SCHED(td, ts->ts_cpu) &&
|
||||
atomic_load_int(&tdq->tdq_lowpri) >= PRI_MIN_IDLE &&
|
||||
atomic_load_char(&tdq->tdq_lowpri) >= PRI_MIN_IDLE &&
|
||||
SCHED_AFFINITY(ts, CG_SHARE_L2)) {
|
||||
if (cg->cg_flags & CG_FLAG_THREAD) {
|
||||
/* Check all SMT threads for being idle. */
|
||||
|
Loading…
Reference in New Issue
Block a user