* [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer
@ 2015-06-10 8:12 Wang Long
2015-06-10 19:46 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Wang Long @ 2015-06-10 8:12 UTC (permalink / raw)
To: rostedt, mingo; +Cc: wanglong, long.wanglong, linux-kernel, peifeiyue
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer
2015-06-10 8:12 [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer Wang Long
@ 2015-06-10 19:46 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2015-06-10 19:46 UTC (permalink / raw)
To: Wang Long; +Cc: mingo, wanglong, linux-kernel, peifeiyue
On Wed, 10 Jun 2015 08:12:37 +0000
Wang Long <long.wanglong@huawei.com> wrote:
> The producer should be used producer_fifo as its sched_priority,
> so correct it.
>
> Signed-off-by: Wang Long <long.wanglong@huawei.com>
I also add this for stable 2.6.33+
Thanks, applied.
-- Steve
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-10 19:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10 8:12 [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer Wang Long
2015-06-10 19:46 ` Steven Rostedt
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®