summaryrefslogtreecommitdiff
path: root/drivers/powercap/idle_inject.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-04-21 12:09:13 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-06-15 14:10:22 +0200
commitc3f47cf940efacaa8fab50973dc98f369c2066ff (patch)
tree65e4ca46236237ca30b3c451279fee0b594d504f /drivers/powercap/idle_inject.c
parent3070da33400c18e0454832425a530d2d0e6a6fcf (diff)
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: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/powercap/idle_inject.c')
-rw-r--r--drivers/powercap/idle_inject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c
index c90f0990968b..bc396a8231bf 100644
--- a/drivers/powercap/idle_inject.c
+++ b/drivers/powercap/idle_inject.c
@@ -268,9 +268,7 @@ void idle_inject_stop(struct idle_inject_device *ii_dev)
*/
static void idle_inject_setup(unsigned int cpu)
{
- struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO / 2 };
-
- sched_setscheduler(current, SCHED_FIFO, &param);
+ sched_set_fifo(current);
}
/**