dmaengine: dmatest: Use fixed point div to calculate iops
authorSeraj Alijan <seraj.alijan@sondrel.com>
Mon, 10 Dec 2018 08:52:34 +0000 (08:52 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 17 Dec 2018 06:15:11 +0000 (11:45 +0530)
commit6138f967bccc7a84a167769c2e045c346ad37191
tree04d0846480f08033e255d1c4ddd1699d7e3ed883
parentd53513d5dc285d9a95a534fc41c5c08af6b60eac
dmaengine: dmatest: Use fixed point div to calculate iops

Use fixed point division to calculate iops to prevent reporting 0 iops
when operations last for longer than a second.

Signed-off-by: Seraj Alijan <seraj.alijan@sondrel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c