Commit c3f47cf9 authored by Peter Zijlstra's avatar Peter Zijlstra

sched,powercap: Convert to sched_set_fifo*()

Because SCHED_FIFO is a broken scheduler model (see previous patches)
take away the priority field, the kernel can't possibly make an
informed decision.

Effectively no change.

Cc: daniel.lezcano@linaro.org
Cc: rafael.j.wysocki@intel.com
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarIngo Molnar <mingo@kernel.org>
parent 3070da33
...@@ -268,9 +268,7 @@ void idle_inject_stop(struct idle_inject_device *ii_dev) ...@@ -268,9 +268,7 @@ void idle_inject_stop(struct idle_inject_device *ii_dev)
*/ */
static void idle_inject_setup(unsigned int cpu) static void idle_inject_setup(unsigned int cpu)
{ {
struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO / 2 }; sched_set_fifo(current);
sched_setscheduler(current, SCHED_FIFO, &param);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment