diff options
-rw-r--r-- | net/core/gen_estimator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index daadbcc4e8dd..86037d16f199 100644 --- a/net/core/gen_estimator.c +++ b/net/core/gen_estimator.c | |||
@@ -135,7 +135,7 @@ skip: | |||
135 | } | 135 | } |
136 | 136 | ||
137 | if (!list_empty(&elist[idx].list)) | 137 | if (!list_empty(&elist[idx].list)) |
138 | mod_timer(&elist[idx].timer, jiffies + ((HZ<<idx)/4)); | 138 | mod_timer(&elist[idx].timer, jiffies + ((HZ/4) << idx)); |
139 | rcu_read_unlock(); | 139 | rcu_read_unlock(); |
140 | } | 140 | } |
141 | 141 | ||
@@ -191,7 +191,7 @@ int gen_new_estimator(struct gnet_stats_basic *bstats, | |||
191 | } | 191 | } |
192 | 192 | ||
193 | if (list_empty(&elist[idx].list)) | 193 | if (list_empty(&elist[idx].list)) |
194 | mod_timer(&elist[idx].timer, jiffies + ((HZ<<idx)/4)); | 194 | mod_timer(&elist[idx].timer, jiffies + ((HZ/4) << idx)); |
195 | 195 | ||
196 | list_add_rcu(&est->list, &elist[idx].list); | 196 | list_add_rcu(&est->list, &elist[idx].list); |
197 | return 0; | 197 | return 0; |