提交 1f4f6da1 编写于 作者: P Paul E. McKenney

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: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 59ca3f9f
......@@ -659,3 +659,10 @@ void process_srcu(struct work_struct *work)
srcu_reschedule(sp);
}
EXPORT_SYMBOL_GPL(process_srcu);
static int __init srcu_bootup_announce(void)
{
pr_info("Classic SRCU implementation.\n");
return 0;
}
early_initcall(srcu_bootup_announce);
......@@ -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);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册