Skip to content

Commit

Permalink
fixup! sched/fair: let scheduler skip util checking if cpu is idle
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Patil <[email protected]>
  • Loading branch information
itsshashanksp committed Mar 4, 2024
1 parent 509243f commit 3099a44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -5396,6 +5396,8 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
struct sched_entity *se = &p->se;
int task_new = !(flags & ENQUEUE_WAKEUP);
int idle_h_nr_running = idle_policy(p->policy);
bool prefer_idle = sched_feat(EAS_PREFER_IDLE) ?
(schedtune_prefer_idle(p) > 0) : 0;

#ifdef CONFIG_SCHED_WALT
p->misfit = !task_fits_max(p, rq->cpu);
Expand Down

0 comments on commit 3099a44

Please sign in to comment.