diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-09-19 11:32:29 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-03 22:26:37 -0500 |
commit | aa23c6fbc50c4f9d8b43682f37fc4580a7851413 (patch) | |
tree | 5834d1e44228b409d03df222c5d8b92ac22d9468 /kernel/rcu/tree.c | |
parent | 2f3fd499df058cb2d53170e56172ce658864050d (diff) |
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.c | 2 |
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) | |||
3766 | pm_notifier(rcu_pm_notify, 0); | 3766 | pm_notifier(rcu_pm_notify, 0); |
3767 | for_each_online_cpu(cpu) | 3767 | for_each_online_cpu(cpu) |
3768 | rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu); | 3768 | rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu); |
3769 | |||
3770 | rcu_early_boot_tests(); | ||
3769 | } | 3771 | } |
3770 | 3772 | ||
3771 | #include "tree_plugin.h" | 3773 | #include "tree_plugin.h" |