Skip to content

Commit c3f47cf

Browse files
author
Peter Zijlstra
committed
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: [email protected] Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent 3070da3 commit c3f47cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/powercap/idle_inject.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ void idle_inject_stop(struct idle_inject_device *ii_dev)
268268
*/
269269
static void idle_inject_setup(unsigned int cpu)
270270
{
271-
struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO / 2 };
272-
273-
sched_setscheduler(current, SCHED_FIFO, &param);
271+
sched_set_fifo(current);
274272
}
275273

276274
/**

0 commit comments

Comments
 (0)