OSDN Git Service

rcu-tasks: Correct comparisons for CPU numbers in show_stalled_task_trace
authorNeeraj Upadhyay <neeraju@codeaurora.org>
Wed, 18 Aug 2021 07:28:41 +0000 (12:58 +0530)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 15 Sep 2021 18:41:14 +0000 (11:41 -0700)
commitd39ec8f3c12abe3710f7031ce3d5564bda12b19e
tree95f5ecff4901afdc471e052d06e2ebacaab2f859
parent89401176daf0a44ab517d9a0e296adb85af246df
rcu-tasks: Correct comparisons for CPU numbers in show_stalled_task_trace

Valid CPU numbers can be zero or greater, but the checks for
->trc_ipi_to_cpu and tick_nohz_full_cpu()'s argument are for strictly
greater than.  This commit therefore corrects the check for no_hz_full
cpu in show_stalled_task_trace() so as to include cpu 0.

Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h