rcu: Assign higher prio to RCU threads if rcutorture is built-in
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 19 Jun 2018 22:14:17 +0000 (15:14 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:39:26 +0000 (15:39 -0700)
commitc7cd161ecb2188c07ba9560ca82aee756575359f
tree8b639591aee1041bef4fef0e950dfbcd48eb9eba
parentb7b6f94cf6e6d961f78064315b6f5de5d9c6414b
rcu: Assign higher prio to RCU threads if rcutorture is built-in

The rcutorture RCU priority boosting tests fail even with CONFIG_RCU_BOOST
set because rcutorture's threads run at the same priority as the default
RCU kthreads (RT class with priority of 1).

This patch checks if RCU torture is built into the kernel and if so,
assigns RT priority 1 to the RCU threads, allowing the rcutorture boost
tests to pass.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c