greybus: gb_loopback: Fix throughput calculations
authorAlexandre Bailon <abailon@baylibre.com>
Wed, 17 Feb 2016 17:21:06 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 17 Feb 2016 23:16:42 +0000 (15:16 -0800)
commitc53b0b27d57cc1dff50080c911b48b2af7728dc4
treedd80ae959492caa4397aaa6081a058f851c6cb57
parent478ce7203c2cf3f241f11587717336a60d391269
greybus: gb_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.

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