diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-10-01 22:25:32 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-12 18:03:59 +0100 |
commit | b3c1d9ec7c59feadd22693f43145d8285bd35b04 (patch) | |
tree | 67cf23249a35a7e02c777170c03888410cff7bcb /kernel/rcu | |
parent | MAINTAINERS: Update from @linux.vnet.ibm.com to @linux.ibm.com (diff) | |
download | linux-b3c1d9ec7c59feadd22693f43145d8285bd35b04.tar.xz linux-b3c1d9ec7c59feadd22693f43145d8285bd35b04.zip |
rcu: Avoid double multiply by HZ
The rcu_check_gp_start_stall() function multiplies the return value
from rcu_jiffies_till_stall_check() by HZ, but the units are already
in jiffies. This commit therefore avoids the need for introduction of
a jiffies-squared unit by removing the extraneous multiplication.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 121f833acd04..4933f5d9d992 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2603,7 +2603,7 @@ static void force_quiescent_state(void) static void rcu_check_gp_start_stall(struct rcu_node *rnp, struct rcu_data *rdp) { - const unsigned long gpssdelay = rcu_jiffies_till_stall_check() * HZ; + const unsigned long gpssdelay = rcu_jiffies_till_stall_check(); unsigned long flags; unsigned long j; struct rcu_node *rnp_root = rcu_get_root(); |