[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1433923957-67842-1-git-send-email-long.wanglong@huawei.com>
Date: Wed, 10 Jun 2015 08:12:37 +0000
From: Wang Long <long.wanglong@...wei.com>
To: <rostedt@...dmis.org>, <mingo@...hat.com>
CC: <wanglong@...qinren.net>, <long.wanglong@...wei.com>,
<linux-kernel@...r.kernel.org>, <peifeiyue@...wei.com>
Subject: [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer
The producer should be used producer_fifo as its sched_priority,
so correct it.
Signed-off-by: Wang Long <long.wanglong@...wei.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists