Skip to content

Commit

Permalink
ring-buffer-benchmark: Fix the wrong sched_priority of producer
Browse files Browse the repository at this point in the history
The producer should be used producer_fifo as its sched_priority,
so correct it.

Link: http://lkml.kernel.org/r/[email protected]

Cc: [email protected] # 2.6.33+
Signed-off-by: Wang Long <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
datawolf authored and rostedt committed Jun 11, 2015
1 parent 030bbdb commit 1080293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/ring_buffer_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, &param);
} else
Expand Down

0 comments on commit 1080293

Please sign in to comment.