Skip to content

Commit ce1c8af

Browse files
author
Peter Zijlstra
committed
sched,rcutorture: Convert to sched_set_fifo_low()
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] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]>
1 parent b143339 commit ce1c8af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kernel/rcu/rcutorture.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,13 +889,11 @@ static int rcu_torture_boost(void *arg)
889889
unsigned long endtime;
890890
unsigned long oldstarttime;
891891
struct rcu_boost_inflight rbi = { .inflight = 0 };
892-
struct sched_param sp;
893892

894893
VERBOSE_TOROUT_STRING("rcu_torture_boost started");
895894

896895
/* Set real-time priority. */
897-
sp.sched_priority = 1;
898-
if (sched_setscheduler(current, SCHED_FIFO, &sp) < 0) {
896+
if (sched_set_fifo_low(current) < 0) {
899897
VERBOSE_TOROUT_STRING("rcu_torture_boost RT prio failed!");
900898
n_rcu_torture_boost_rterror++;
901899
}

0 commit comments

Comments
 (0)