rcu: Fix CONFIG_RCU_FAST_NO_HZ stall warning message
authorPaul E. McKenney <paul.mckenney@linaro.org>
Fri, 21 Sep 2012 17:41:50 +0000 (10:41 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 23 Sep 2012 14:42:52 +0000 (07:42 -0700)
commit86f343b50bb9f56cce60fade22da9defff28934c
treec2951c5b76afcd56a3d9f4a5d1d40e95528f3bbe
parent22a767269a767b3ee91e4aaea353ac6bec6a912d
rcu: Fix CONFIG_RCU_FAST_NO_HZ stall warning message

The print_cpu_stall_fast_no_hz() function attempts to print -1 when
the ->idle_gp_timer is not pending, but unsigned arithmetic causes it
to instead print ULONG_MAX, which is 4294967295 on 32-bit systems and
18446744073709551615 on 64-bit systems.  Neither of these are the most
reader-friendly values, so this commit instead causes "timer not pending"
to be printed when ->idle_gp_timer is not pending.

Reported-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/RCU/stallwarn.txt
kernel/rcutree_plugin.h