]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 3 Jul 2015 16:34:40 +0000 (12:34 -0400)
[ Upstream commit 108029323910c5dd1ef8fa2d10da1ce5fbce6e12 ]

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
Cc: stable@vger.kernel.org # 2.6.33+
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
kernel/trace/ring_buffer_benchmark.c

index 3f9e328c30b5299961a8ad86250dd89ca35aaaa3..728f99b4533d4de5a4598f37fc9250fc105de436 100644 (file)
@@ -452,7 +452,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