Re: [PATCH 2/2] sched/fair: Reimplement NEXT_BUDDY to align with EEVDF goals
From: Peter Zijlstra
Date: Tue Oct 28 2025 - 11:09:56 EST
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.