lkml.org 
[lkml]   [2020]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: make p->prio independent of p->mm
On Fri, 24 Apr 2020 08:30:28 +0800
Hillf Danton <hdanton@sina.com> wrote:

> > I believe Peter meant axing the double check, not the check together.
> >
> > That is, instead of:
> >
> > if (p->flags & PF_KTHREAD) {
> > if (attr->sched_priority > MAX_RT_PRIO - 1)
> > return -EINVAL;
> > } else {
> > if (attr->sched_priority > MAX_USER_RT_PRIO - 1)
> > return -EINVAL;
> > }
> >
> > Just have:
> >
> > if (attr->sched_priority > MAX_RT_PRIO -1)
> > return -EINVAL;
> >
> Got it, thank you :) Spin in couple of days.

I still think getting rid of MAX_USER_RT_PRIO would be good too.

-- Steve

\
 
 \ /
  Last update: 2020-04-24 02:42    [W:0.045 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site