diff options
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch')
| -rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch b/recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch new file mode 100644 index 000000000..f52e09a89 --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From d9de6a0f342b2291e2f2d82b594fbb3b8ed7f468 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
| 3 | Date: Thu, 27 Oct 2016 09:29:24 +0300 | ||
| 4 | Subject: [PATCH 071/104] fix the scale of the runtime value | ||
| 5 | |||
| 6 | Subtraction operation does not honor the scale variable. Only | ||
| 7 | division does. | ||
| 8 | |||
| 9 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
| 10 | --- | ||
| 11 | tests/async_speed_multi.sh | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh | ||
| 15 | index 10b2348..659be0e 100755 | ||
| 16 | --- a/tests/async_speed_multi.sh | ||
| 17 | +++ b/tests/async_speed_multi.sh | ||
| 18 | @@ -85,7 +85,7 @@ function run_parallel | ||
| 19 | |||
| 20 | wait $MPSTAT_PID | ||
| 21 | |||
| 22 | - runtime=$(echo "scale=2; $end - $start" | bc -l ) | ||
| 23 | + runtime=$(echo "scale=2; ($end - $start) / 1" | bc -l ) | ||
| 24 | total_data=`cat ${OUT_BASENAME}_* | cut -f 1 | SUM` | ||
| 25 | avg_speed=$(echo "scale=2; $total_data / $runtime / 1000000000" | bc -l) | ||
| 26 | cpu_idle=`get_cpu_idle` | ||
| 27 | -- | ||
| 28 | 2.10.2 | ||
| 29 | |||
