aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/sdk_patches/0084-fix-ignored-SIGALRM-signals-on-some-platforms.patch
blob: aa05f98f3bab2a77d244bb30ac6a0a978a51f25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 1bcef054cfc094e51c9c3cb1048b8bf909326082 Mon Sep 17 00:00:00 2001
From: Cristian Stoica <cristian.stoica@nxp.com>
Date: Fri, 28 Oct 2016 17:41:09 +0300
Subject: [PATCH 084/104] fix ignored SIGALRM signals on some platforms

Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
---
 tests/async_speed.c | 4 ++--
 tests/sync_speed.c  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/async_speed.c b/tests/async_speed.c
index d843c02..eb8468d 100644
--- a/tests/async_speed.c
+++ b/tests/async_speed.c
@@ -76,8 +76,8 @@ static double udifftimeval(struct timeval start, struct timeval end)
 	       (double)(end.tv_sec - start.tv_sec) * 1000 * 1000;
 }
 
-static int must_finish = 0;
-static int must_exit = 0;
+static volatile int must_finish;
+static volatile int must_exit;
 static struct pollfd pfd;
 
 static void alarm_handler(int signo)
diff --git a/tests/sync_speed.c b/tests/sync_speed.c
index 56cd3aa..ba1d170 100644
--- a/tests/sync_speed.c
+++ b/tests/sync_speed.c
@@ -71,8 +71,8 @@ static double udifftimeval(struct timeval start, struct timeval end)
 	       (double)(end.tv_sec - start.tv_sec) * 1000 * 1000;
 }
 
-static int must_finish = 0;
-static int must_exit = 0;
+static volatile int must_finish;
+static volatile int must_exit;
 
 static void alarm_handler(int signo)
 {
-- 
2.10.2