Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions 6.18/sched/0001-bore-cachy.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1196,23 +1196,23 @@ index b2e4fd2070c4..6f3360a6c8ce 100644
if (dequeue_entities(rq, &p->se, flags) < 0)
return false;

@@ -8893,6 +8960,16 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int
if (__pick_eevdf(cfs_rq, !do_preempt_short) == pse)
@@ -8988,6 +8988,16 @@
if (nse == pse)
goto preempt;

+#ifdef CONFIG_SCHED_BORE
+ if (static_branch_likely(&sched_bore_key) &&
+ sched_feat(PREEMPT_SHORT_BORE) &&
+ entity_is_task(pse) && entity_is_task(se) &&
+ task_of(pse)->bore.penalty < task_of(se)->bore.penalty) {
+ do_preempt_short = true;
+ preempt_action = PREEMPT_WAKEUP_SHORT;
+ goto preempt;
+ }
+#endif /* CONFIG_SCHED_BORE */
+
if (sched_feat(RUN_TO_PARITY) && do_preempt_short)
update_protect_slice(cfs_rq, se);

/*
* Because p is enqueued, nse being null can only mean that we
* dequeued a delayed task. If there are still entities queued in
@@ -9067,16 +9144,25 @@ static void yield_task_fair(struct rq *rq)
/*
* Are we the only task in the tree?
Expand Down