summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch
diff options
context:
space:
mode:
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.patch29
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 00000000..f52e09a8
--- /dev/null
+++ b/recipes-kernel/cryptodev/sdk_patches/0071-fix-the-scale-of-the-runtime-value.patch
@@ -0,0 +1,29 @@
1From d9de6a0f342b2291e2f2d82b594fbb3b8ed7f468 Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@nxp.com>
3Date: Thu, 27 Oct 2016 09:29:24 +0300
4Subject: [PATCH 071/104] fix the scale of the runtime value
5
6Subtraction operation does not honor the scale variable. Only
7division does.
8
9Signed-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
14diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh
15index 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--
282.10.2
29