Re: [PATCH 1/2] sched/rt: Add a helper to test for a RT task

From: Sebastian Andrzej Siewior
Date: Fri Oct 06 2017 - 04:51:55 EST


On 2017-10-06 10:19:37 [+0200], Peter Zijlstra wrote:
> > --- a/include/linux/sched/rt.h
> > +++ b/include/linux/sched/rt.h
> > @@ -17,6 +17,17 @@ static inline int rt_task(struct task_struct *p)
> > return rt_prio(p->prio);
> > }
> >
> > +static inline bool task_is_elevated(struct task_struct *tsk)
>
> Would you be terribly upset if I rename that? I'm thinking something
> like task_is_realtime() better reflects what it does.

no, not at all.

Sebastian