author: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-06 11:55:43 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-06 11:55:43 -0700
commit: 6d2b84a4e5b954bd2587e06c29577256f59e0030
parent: 4cec929370763c475111b1eb307df6759b6733e7
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c
index 597733ed86e9..4310901a074e 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, ¶m);
+ sched_set_fifo(current);
}
/**