summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-09-19 11:32:29 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-11-03 19:26:37 -0800
commitaa23c6fbc50c4f9d8b43682f37fc4580a7851413 (patch)
tree5834d1e44228b409d03df222c5d8b92ac22d9468 /kernel/rcu/tree.c
parent2f3fd499df058cb2d53170e56172ce658864050d (diff)
downloadblackbird-op-linux-aa23c6fbc50c4f9d8b43682f37fc4580a7851413.tar.gz
blackbird-op-linux-aa23c6fbc50c4f9d8b43682f37fc4580a7851413.zip
rcutorture: Add early boot self tests
Add early boot self tests for RCU under CONFIG_PROVE_RCU. Currently the only test is adding a dummy callback which increments a counter which we then later verify after calling rcu_barrier*(). Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 9815447d22e0..77b48f03c077 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3766,6 +3766,8 @@ void __init rcu_init(void)
pm_notifier(rcu_pm_notify, 0);
for_each_online_cpu(cpu)
rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu);
+
+ rcu_early_boot_tests();
}
#include "tree_plugin.h"
OpenPOWER on IntegriCloud