summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Long <long.wanglong@huawei.com>2015-06-10 08:12:37 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-22 16:55:53 -0700
commit61a5c6bf34e4fe4e64b233b612bf7b41ca2ac50e (patch)
tree439dc5f3f1253480b5b2fc7824021f9c5c98fe08
parentdc320d50095c8e3448fbf4c815e2c244852855bf (diff)
downloadlinux-stable-61a5c6bf34e4fe4e64b233b612bf7b41ca2ac50e.tar.gz
linux-stable-61a5c6bf34e4fe4e64b233b612bf7b41ca2ac50e.tar.bz2
linux-stable-61a5c6bf34e4fe4e64b233b612bf7b41ca2ac50e.zip
ring-buffer-benchmark: Fix the wrong sched_priority of producer
commit 108029323910c5dd1ef8fa2d10da1ce5fbce6e12 upstream. The producer should be used producer_fifo as its sched_priority, so correct it. Link: http://lkml.kernel.org/r/1433923957-67842-1-git-send-email-long.wanglong@huawei.com Signed-off-by: Wang Long <long.wanglong@huawei.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--kernel/trace/ring_buffer_benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c
index a5457d577b98..6ad2e2d320fe 100644
--- a/kernel/trace/ring_buffer_benchmark.c
+++ b/kernel/trace/ring_buffer_benchmark.c
@@ -455,7 +455,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, &param);
} else