Skip to content

Commit 1080293

Browse files
datawolfrostedt
authored andcommitted
ring-buffer-benchmark: Fix the wrong sched_priority of producer
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]>
1 parent 030bbdb commit 1080293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/ring_buffer_benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static int __init ring_buffer_benchmark_init(void)
450450

451451
if (producer_fifo >= 0) {
452452
struct sched_param param = {
453-
.sched_priority = consumer_fifo
453+
.sched_priority = producer_fifo
454454
};
455455
sched_setscheduler(producer, SCHED_FIFO, &param);
456456
} else

0 commit comments

Comments
 (0)