rcu-tasks: Make pr_info() output more clearly in cblist_init_generic()
PATCH 1/1 rcu-tasks: Make pr_info() output more clearly in cblist_init_generic()
This commit use rtp->name instead of __func__, and output the value of rcu_task_cb_adjust in pr_info(), reduced pr_info() calls.
Signed-off-by Zqiang <[email protected]>
--- kernel/rcu/tasks.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
kernel/rcu/tasks.h +2 -4
@@ -270,10 +270,8 @@ static void cblist_init_generic(struct rcu_tasks *rtp) }raw_spin_unlock_irqrestore (&rtp->cbs_gbl_lock, flags); -if (rcu_task_cb_adjust) -pr_info ("%s: Setting adjustable number of callback queues.\n" , __func__); - -pr_info ("%s: Setting shift to %d and lim to %d.\n" , __func__,data_race (rtp->percpu_enqueue_shift),data_race (rtp->percpu_enqueue_lim)); +pr_info ("%s: Setting shift to %d and lim to %d rcu_task_cb_adjust=%d.\n" , rtp->name, +data_race (rtp->percpu_enqueue_shift),data_race (rtp->percpu_enqueue_lim), rcu_task_cb_adjust); }// IRQ-work handler that does deferred wakeup for call_rcu_tasks_generic().
Signature · 1 line
2.25.1
Quoted 4 lines · Zqiang
This commit use
rtp->nameinstead of__func__, and output the value ofrcu_task_cb_adjustinpr_info(), reducedpr_info()calls.Signed-off-by Zqiang <[email protected]>
Queued, thank you!
Thanx, Paul
Quoted 24 lines
--- kernel/rcu/tasks.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)kernel/rcu/tasks.h +2
-4@@ -270,10 +270,8 @@ static void cblist_init_generic(struct rcu_tasks *rtp) }raw_spin_unlock_irqrestore (&rtp->cbs_gbl_lock, flags); -if (rcu_task_cb_adjust) -pr_info ("%s: Setting adjustable number of callback queues.\n" , __func__); - -pr_info ("%s: Setting shift to %d and lim to %d.\n" , __func__,data_race (rtp->percpu_enqueue_shift),data_race (rtp->percpu_enqueue_lim)); +pr_info ("%s: Setting shift to %d and lim to %d rcu_task_cb_adjust=%d.\n" , rtp->name, +data_race (rtp->percpu_enqueue_shift),data_race (rtp->percpu_enqueue_lim), rcu_task_cb_adjust); }// IRQ-work handler that does deferred wakeup for call_rcu_tasks_generic(). Signature · 1 line
2.25.1