Skip to content

Commit

Permalink
ftrace: user proper API for setting RT prios in selftest
Browse files Browse the repository at this point in the history
The wakeup selftest used an internal API for setting the test task priority.
This patch fixes it to use the proper API for performing such a task.

Thanks goes to Randy Dunlap for pointing out this build failure.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Steven Rostedt authored and Thomas Gleixner committed May 23, 2008
1 parent 2dc8f09 commit 05bd68c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/trace/trace_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,11 @@ trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *
#ifdef CONFIG_SCHED_TRACER
static int trace_wakeup_test_thread(void *data)
{
struct completion *x = data;

/* Make this a RT thread, doesn't need to be too high */
struct sched_param param = { .sched_priority = 5 };
struct completion *x = data;

rt_mutex_setprio(current, MAX_RT_PRIO - 5);
sched_setscheduler(current, SCHED_FIFO, &param);

/* Make it know we have a new prio */
complete(x);
Expand Down

0 comments on commit 05bd68c

Please sign in to comment.