From: Steven Rostedt <rostedt@goodmis.org>
To: Wang Long <long.wanglong@huawei.com>
Cc: <mingo@redhat.com>, <wanglong@laoqinren.net>,
<linux-kernel@vger.kernel.org>, <peifeiyue@huawei.com>
Subject: Re: [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer
Date: Wed, 10 Jun 2015 15:46:58 -0400 [thread overview]
Message-ID: <20150610154658.2a9912ce@gandalf.local.home> (raw)
In-Reply-To: <1433923957-67842-1-git-send-email-long.wanglong@huawei.com>
On Wed, 10 Jun 2015 08:12:37 +0000
Wang Long <long.wanglong@huawei.com> wrote:
> The producer should be used producer_fifo as its sched_priority,
> so correct it.
>
> Signed-off-by: Wang Long <long.wanglong@huawei.com>
I also add this for stable 2.6.33+
Thanks, applied.
-- Steve
> ---
> kernel/trace/ring_buffer_benchmark.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c
> index 13d945c..1b28df2 100644
> --- a/kernel/trace/ring_buffer_benchmark.c
> +++ b/kernel/trace/ring_buffer_benchmark.c
> @@ -450,7 +450,7 @@ static int __init ring_buffer_benchmark_init(void)
>
> if (producer_fifo >= 0) {
> struct sched_param param = {
> - .sched_priority = consumer_fifo
> + .sched_priority = producer_fifo
> };
> sched_setscheduler(producer, SCHED_FIFO, ¶m);
> } else
prev parent reply other threads:[~2015-06-10 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 8:12 Wang Long
2015-06-10 19:46 ` Steven Rostedt [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=20150610154658.2a9912ce@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=long.wanglong@huawei.com \
--cc=mingo@redhat.com \
--cc=peifeiyue@huawei.com \
--cc=wanglong@laoqinren.net \
/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
all inboxes | Powered by JetHome®