Re: [PATCH 2/5] sched: Add Lazy preemption model
From: Sebastian Andrzej Siewior
Date: Wed Oct 09 2024 - 04:51:56 EST
On 2024-10-07 09:46:11 [+0200], Peter Zijlstra wrote:
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -1103,6 +1106,32 @@ void resched_curr(struct rq *rq)
…
> +static __always_inline int tif_need_resched_lazy(void)
The naming is a bit confusing here because tif_need_resched() checks if
the TIF_NEED_RESCHED is set while this returns the proper TIF bit
instead.
> +{
> + if (dynamic_preempt_lazy())
> + return TIF_NEED_RESCHED_LAZY;
> +
> + return TIF_NEED_RESCHED;
> +}
Sebastian