diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-01 11:52:19 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-31 16:39:51 -0400 |
commit | 67522beecfc75d133514dda64107ee19125a74b9 (patch) | |
tree | 0e4c08e31e5ff3ffce2fbee8dff44be370d321ab /kernel/rcu | |
parent | e6fb1fc1085e5b5155bc8f3d3385c48b8bdde95e (diff) |
rcutorture: Remove redundant initialization to zero
The current code initializes the global per-CPU variables
rcu_torture_count and rcu_torture_batch to zero. However, C does this
initialization by default, and explicit initialization of per-CPU
variables now needs a different syntax if "make tags" is to work.
This commit therefore removes the initialization.
Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/rcutorture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 9234e75b106a..52b49fe90919 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -130,8 +130,8 @@ static struct rcu_torture __rcu *rcu_torture_current; | |||
130 | static unsigned long rcu_torture_current_version; | 130 | static unsigned long rcu_torture_current_version; |
131 | static struct rcu_torture rcu_tortures[10 * RCU_TORTURE_PIPE_LEN]; | 131 | static struct rcu_torture rcu_tortures[10 * RCU_TORTURE_PIPE_LEN]; |
132 | static DEFINE_SPINLOCK(rcu_torture_lock); | 132 | static DEFINE_SPINLOCK(rcu_torture_lock); |
133 | static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) = { 0 }; | 133 | static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count); |
134 | static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_batch) = { 0 }; | 134 | static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_batch); |
135 | static atomic_t rcu_torture_wcount[RCU_TORTURE_PIPE_LEN + 1]; | 135 | static atomic_t rcu_torture_wcount[RCU_TORTURE_PIPE_LEN + 1]; |
136 | static atomic_t n_rcu_torture_alloc; | 136 | static atomic_t n_rcu_torture_alloc; |
137 | static atomic_t n_rcu_torture_alloc_fail; | 137 | static atomic_t n_rcu_torture_alloc_fail; |