diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-22 15:38:26 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-07-25 13:04:45 -0700 |
commit | a2b2df207acff1e3f965ff2c7c38255b06d583cb (patch) | |
tree | f34090ad318d6537d7a6339f8c6625e882e9ed6e /kernel/torture.c | |
parent | 313517fc44fb2d8403654b2d3e511da7d1c78cd6 (diff) | |
download | lwn-a2b2df207acff1e3f965ff2c7c38255b06d583cb.tar.gz lwn-a2b2df207acff1e3f965ff2c7c38255b06d583cb.zip |
torture: Fix typo suppressing CPU-hotplug statistics
The torture status line contains a series of values preceded by "onoff:".
The last value in that line, the one preceding the "HZ=" string, is
always zero. The reason that it is always zero is that torture_offline()
was incrementing the sum_offl pointer instead of the value that this
pointer referenced. This commit therefore makes this increment operate
on the statistic rather than the pointer to the statistic.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r-- | kernel/torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/torture.c b/kernel/torture.c index 55de96529287..637e172835d8 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -117,7 +117,7 @@ bool torture_offline(int cpu, long *n_offl_attempts, long *n_offl_successes, torture_type, cpu); (*n_offl_successes)++; delta = jiffies - starttime; - sum_offl += delta; + *sum_offl += delta; if (*min_offl < 0) { *min_offl = delta; *max_offl = delta; |