From: peterz@infradead.org
To: qianjun.kernel@gmail.com
Cc: mingo@redhat.com, juri.lelli@redhat.com,
vincent.guittot@linaro.org, linux-kernel@vger.kernel.org,
laoar.shao@gmail.com
Subject: Re: [PATCH 1/1] kernel/sched:use the enum code replace of the int variable
Date: Fri, 11 Sep 2020 11:06:32 +0200 [thread overview]
Message-ID: <20200911090632.GC1362448@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <20200907130502.44200-1-qianjun.kernel@gmail.com>
On Mon, Sep 07, 2020 at 09:05:02PM +0800, qianjun.kernel@gmail.com wrote:
> From: jun qian <qianjun.kernel@gmail.com>
>
> It is hard to understand what the meaning of the value from
> the return value of wakeup_preempt_entity, so I fix it.
> @@ -6822,9 +6828,9 @@ static unsigned long wakeup_gran(struct sched_entity *se)
> * g
> * |<--->|c
> *
> - * w(c, s1) = -1
> - * w(c, s2) = 0
> - * w(c, s3) = 1
> + * w(c, s1) = NO_NEED_PREEMPT
> + * w(c, s2) = MAY_NEED_PREEMPT
> + * w(c, s3) = NEED_PREEMPT
> *
> */
Yeah, I don't think so. The function is a simple C style compare,
where negative is less, 0 is equal and positive is more than.
prev parent reply other threads:[~2020-09-11 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 13:05 qianjun.kernel
2020-09-11 9:06 ` peterz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200911090632.GC1362448@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=juri.lelli@redhat.com \
--cc=laoar.shao@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=qianjun.kernel@gmail.com \
--cc=vincent.guittot@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome