Skip to content

Commit 0030c1d

Browse files
author
Peter Zijlstra
committed
sched,bL_switcher: 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. In this case, use fifo_low, because it only cares about being above SCHED_NORMAL. Effectively no change in behaviour. Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Acked-by: Nicolas Pitre <[email protected]>
1 parent 7318d4c commit 0030c1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/arm/common/bL_switcher.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,11 @@ static struct bL_thread bL_threads[NR_CPUS];
270270
static int bL_switcher_thread(void *arg)
271271
{
272272
struct bL_thread *t = arg;
273-
struct sched_param param = { .sched_priority = 1 };
274273
int cluster;
275274
bL_switch_completion_handler completer;
276275
void *completer_cookie;
277276

278-
sched_setscheduler_nocheck(current, SCHED_FIFO, &param);
277+
sched_set_fifo_low(current);
279278
complete(&t->started);
280279

281280
do {

0 commit comments

Comments
 (0)