Re: [RFC][PATCH 4/6] sched: Fold sched_class::switch{ing,ed}_{to,from}() into the change pattern

From: Tejun Heo
Date: Wed Oct 30 2024 - 17:29:43 EST


On Wed, Oct 30, 2024 at 10:15:06PM +0100, Peter Zijlstra wrote:
...
> > > + if (!(queue_flags & DEQUEUE_CLASS))
> > > + check_prio_changed(task_rq(p), p, p->prio);
> >
> > Maybe prio_changed can be moved into scoped_guard?
>
> It wasn't before -- do you have need for it to be inside?

No, was just wondering whether that'd make things a bit more compact. Either
way is fine.

Thanks.

--
tejun