]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ring-buffer-benchmark: Fix the wrong sched_priority of producer
authorWang Long <long.wanglong@huawei.com>
Wed, 10 Jun 2015 08:12:37 +0000 (08:12 +0000)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 30 Jun 2015 16:15:24 +0000 (17:15 +0100)
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: Luis Henriques <luis.henriques@canonical.com>
kernel/trace/ring_buffer_benchmark.c

index 0434ff1b808e92c539b70828185c8fa1c44c865a..5c98a5a67314e9d900341419427d0a215dcc6e57 100644 (file)
@@ -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