rcu-tasks: Make the units of ->init_fract be jiffies
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 17 Sep 2020 23:17:17 +0000 (16:17 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 7 Nov 2020 01:17:59 +0000 (17:17 -0800)
commit75dc2da5ecd65bdcbfc4d59b9d9b7342c61fe374
treeb6d02ef75ddec6eb2f6debbb119f75dfd38ae517
parent27c0f1448389baf7f309b69e62d4b531c9395e88
rcu-tasks: Make the units of ->init_fract be jiffies

Currently, the units of ->init_fract are milliseconds while those of
->gp_sleep are jiffies.  For consistency with each other and with the
argument of schedule_timeout_idle(), this commit changes the units of
->init_fract to jiffies.

This change does affect the backoff algorithm, but only on systems where
HZ is not 1000, and even there the change makes more sense, given that the
current setup would "back off" to the same number of jiffies repeatedly.
In contrast, with this change, the number of jiffies waited increases
on each pass through the loop in the rcu_tasks_wait_gp() function.

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