Skip to content

Commit

Permalink
XANMOD: Change rcutree.kthread_prio to SCHED_RR policy
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Aug 2, 2022
1 parent a034480 commit a0a63c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kernel/rcu/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -3341,7 +3341,7 @@ rcu_torture_init(void)
t = per_cpu(ksoftirqd, cpu);
WARN_ON_ONCE(!t);
sp.sched_priority = 2;
sched_setscheduler_nocheck(t, SCHED_FIFO, &sp);
sched_setscheduler_nocheck(t, SCHED_RR, &sp);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion kernel/rcu/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -4588,7 +4588,7 @@ static int __init rcu_spawn_gp_kthread(void)
return 0;
if (kthread_prio) {
sp.sched_priority = kthread_prio;
sched_setscheduler_nocheck(t, SCHED_FIFO, &sp);
sched_setscheduler_nocheck(t, SCHED_RR, &sp);
}
rnp = rcu_get_root();
raw_spin_lock_irqsave_rcu_node(rnp, flags);
Expand Down
4 changes: 2 additions & 2 deletions kernel/rcu/tree_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ static void rcu_cpu_kthread_setup(unsigned int cpu)
struct sched_param sp;

sp.sched_priority = kthread_prio;
sched_setscheduler_nocheck(current, SCHED_FIFO, &sp);
sched_setscheduler_nocheck(current, SCHED_RR, &sp);
#endif /* #ifdef CONFIG_RCU_BOOST */

WRITE_ONCE(rdp->rcuc_activity, jiffies);
Expand Down Expand Up @@ -1194,7 +1194,7 @@ static void rcu_spawn_one_boost_kthread(struct rcu_node *rnp)
rnp->boost_kthread_task = t;
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
sp.sched_priority = kthread_prio;
sched_setscheduler_nocheck(t, SCHED_FIFO, &sp);
sched_setscheduler_nocheck(t, SCHED_RR, &sp);
wake_up_process(t); /* get to TASK_INTERRUPTIBLE quickly. */

out:
Expand Down

0 comments on commit a0a63c0

Please sign in to comment.