Re: [PATCH] sched/rt: Introduce prio_{higher,lower}() helper for comparing RT task prority
From: Muchun Song
Date: Mon Nov 12 2018 - 10:16:07 EST
Hi Peter,
Ingo Molnar <mingo@xxxxxxxxxx> ä2018å11æ12æåä äå2:57åéï
>
>
> * Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> > I think you only need the less thing, because:
> >
> > static inline bool prio_lower(int a, int b)
> > {
> > return a > b;
> > }
>
> I'd say that should be named rt_prio_lower(), even if it's local to
> sched/rt.c, right?
>
I agree with Ingo's point of view. Looks great. What is your opinion?
If you also agree. I will update the patch and send it.
Thanks.