diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 15:20:59 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:49:42 -0400 |
commit | 05bd68c514579e007b46e4fa0461b78416a3f4c2 (patch) | |
tree | 0808f0191aa696f4dd593690798a94351dbb407c /kernel/trace/trace_selftest.c | |
parent | 2dc8f09571a61d9cb3dc47bba6608689dfe15d16 (diff) |
ftrace: user proper API for setting RT prios in selftest
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>
Diffstat (limited to 'kernel/trace/trace_selftest.c')
-rw-r--r-- | kernel/trace/trace_selftest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 395274e783b3..a5f6001c3332 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c | |||
@@ -410,11 +410,11 @@ trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array * | |||
410 | #ifdef CONFIG_SCHED_TRACER | 410 | #ifdef CONFIG_SCHED_TRACER |
411 | static int trace_wakeup_test_thread(void *data) | 411 | static int trace_wakeup_test_thread(void *data) |
412 | { | 412 | { |
413 | struct completion *x = data; | ||
414 | |||
415 | /* Make this a RT thread, doesn't need to be too high */ | 413 | /* Make this a RT thread, doesn't need to be too high */ |
414 | struct sched_param param = { .sched_priority = 5 }; | ||
415 | struct completion *x = data; | ||
416 | 416 | ||
417 | rt_mutex_setprio(current, MAX_RT_PRIO - 5); | 417 | sched_setscheduler(current, SCHED_FIFO, ¶m); |
418 | 418 | ||
419 | /* Make it know we have a new prio */ | 419 | /* Make it know we have a new prio */ |
420 | complete(x); | 420 | complete(x); |