From: Wang Long <long.wanglong@huawei.com>
To: <rostedt@goodmis.org>, <mingo@redhat.com>
Cc: <wanglong@laoqinren.net>, <long.wanglong@huawei.com>,
<linux-kernel@vger.kernel.org>, <peifeiyue@huawei.com>
Subject: [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer
Date: Wed, 10 Jun 2015 08:12:37 +0000 [thread overview]
Message-ID: <1433923957-67842-1-git-send-email-long.wanglong@huawei.com> (raw)
The producer should be used producer_fifo as its sched_priority,
so correct it.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
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
--
1.8.3.4
next reply other threads:[~2015-06-10 8:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 8:12 Wang Long [this message]
2015-06-10 19:46 ` Steven Rostedt
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=1433923957-67842-1-git-send-email-long.wanglong@huawei.com \
--to=long.wanglong@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peifeiyue@huawei.com \
--cc=rostedt@goodmis.org \
--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®