diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-21 11:16:32 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-08 08:25:30 -0700 |
commit | 1f4f6da1c80905830337c3ff46a2d3260dabb864 (patch) | |
tree | af11c6ffb7ba97c7c1feb1b95635ecf7c1f83291 /kernel/rcu/srcutree.c | |
parent | 59ca3f9fef599cc6da7975d2261ab3bb86a6ac6b (diff) | |
download | linux-1f4f6da1c80905830337c3ff46a2d3260dabb864.tar.bz2 |
srcu: Make Classic and Tree SRCU announce themselves at bootup
Currently, the only way to tell whether a given kernel is running
Classic, Tiny, or Tree SRCU is to look at the .config file, which
can easily be lost or associated with the wrong kernel. This commit
therefore has Classic and Tree SRCU identify themselves at boot time.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/srcutree.c')
-rw-r--r-- | kernel/rcu/srcutree.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c index fceca84df6b0..03d57fe9f094 100644 --- a/kernel/rcu/srcutree.c +++ b/kernel/rcu/srcutree.c @@ -1167,3 +1167,10 @@ void srcutorture_get_gp_data(enum rcutorture_type test_type, *gpnum = rcu_seq_ctr(sp->srcu_gp_seq_needed); } EXPORT_SYMBOL_GPL(srcutorture_get_gp_data); + +static int __init srcu_bootup_announce(void) +{ + pr_info("Hierarchical SRCU implementation.\n"); + return 0; +} +early_initcall(srcu_bootup_announce); |