Re: [PATCH 2/2] sched/fair: Reimplement NEXT_BUDDY to align with EEVDF goals

From: Mel Gorman

Date: Fri Oct 31 2025 - 05:48:17 EST


On Tue, Oct 28, 2025 at 04:09:51PM +0100, Peter Zijlstra wrote:
> On Mon, Oct 27, 2025 at 01:39:15PM +0000, Mel Gorman wrote:
> > +enum preempt_wakeup_action {
> > + PREEMPT_WAKEUP_NONE, /* No action on the buddy */
> > + PREEMPT_WAKEUP_NEXT, /* Check next is most eligible
> > + * before rescheduling.
> > + */
> > + PREEMPT_WAKEUP_RESCHED, /* Plain reschedule */
> > +};
>
> In pre-existing code that isn't modified by this patch, we have:
>
> if (do_preempt_short)
>
> Which seems to hard rely on PREEMPT_WAKEUP_NONE being 0, please make
> that explicit in the enum above.

Will do.

--
Mel Gorman
SUSE Labs