commit | ff71d395f3cd5e5efe4b9b3c94c2d41581fb9d8c | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Mon Aug 03 12:57:19 2015 -0500 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Mon Aug 03 20:12:50 2015 -0700 |
tree | e45903c17f8a3d2365188f9ede1c4ac360393808 | |
parent | 7a135a965c62f7abdf8f3acc5ca45a03d27b272c [diff] |
greybus: loopback: compute average stats on demand only Stop recording and updating the average every time a sample is recorded. Instead, compute it from the sum and count only when it's required. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>