greybus: loopback: Fix throughput calculations
authorAlexandre Bailon <abailon@baylibre.com>
Thu, 25 Feb 2016 17:19:15 +0000 (18:19 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Feb 2016 01:05:31 +0000 (17:05 -0800)
commitab81bb9c68d9fb899b79fa622fedf294e66fa53d
tree20199c423247683bda20cdefaf55d5caf51254f8
parentd9048d8c96bfe2d18cdf7205b3de97aa344283a7
greybus: loopback: Fix throughput calculations

Throughput and requests per second calculations are broken for
asynchronous request.
Instead of calculate the throughput for each iteration,
calculate it once at the end of the test.
In addition, update every seconds the min and the max
for throughput and requests per second.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c