mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
srcu: Print non-default exp_holdoff values at boot time
This commit makes srcu_bootup_announce() check for non-default values of the auto-expedite holdoff time exp_holdoff and print a message if so. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
b5815e6cd3
commit
0c8e0e3c37
1 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,9 @@
|
||||||
#include "rcu.h"
|
#include "rcu.h"
|
||||||
#include "rcu_segcblist.h"
|
#include "rcu_segcblist.h"
|
||||||
|
|
||||||
static ulong exp_holdoff = 25 * 1000; /* Holdoff (ns) for auto-expediting. */
|
/* Holdoff in nanoseconds for auto-expediting. */
|
||||||
|
#define DEFAULT_SRCU_EXP_HOLDOFF (25 * 1000)
|
||||||
|
static ulong exp_holdoff = DEFAULT_SRCU_EXP_HOLDOFF;
|
||||||
module_param(exp_holdoff, ulong, 0444);
|
module_param(exp_holdoff, ulong, 0444);
|
||||||
|
|
||||||
static void srcu_invoke_callbacks(struct work_struct *work);
|
static void srcu_invoke_callbacks(struct work_struct *work);
|
||||||
|
@ -1171,6 +1173,8 @@ EXPORT_SYMBOL_GPL(srcutorture_get_gp_data);
|
||||||
static int __init srcu_bootup_announce(void)
|
static int __init srcu_bootup_announce(void)
|
||||||
{
|
{
|
||||||
pr_info("Hierarchical SRCU implementation.\n");
|
pr_info("Hierarchical SRCU implementation.\n");
|
||||||
|
if (exp_holdoff != DEFAULT_SRCU_EXP_HOLDOFF)
|
||||||
|
pr_info("\tNon-default auto-expedite holdoff of %lu ns.\n", exp_holdoff);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
early_initcall(srcu_bootup_announce);
|
early_initcall(srcu_bootup_announce);
|
||||||
|
|
Loading…
Reference in a new issue