Re: [PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer
From: Steven Rostedt
Date: Wed Jun 10 2015 - 15:47:16 EST
On Wed, 10 Jun 2015 08:12:37 +0000
Wang Long <long.wanglong@xxxxxxxxxx> wrote:
> The producer should be used producer_fifo as its sched_priority,
> so correct it.
>
> Signed-off-by: Wang Long <long.wanglong@xxxxxxxxxx>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/