From: Paul E. McKenney Date: Thu, 22 Jun 2017 22:38:26 +0000 (-0700) Subject: torture: Fix typo suppressing CPU-hotplug statistics X-Git-Tag: v4.14-rc1~174^2^2^3~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2b2df207acff1e3f965ff2c7c38255b06d583cb;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/kernel/torture.c b/kernel/torture.c index 55de965..637e172 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;