summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smppsxsignal01/init.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smppsxsignal01/init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuites/smptests/smppsxsignal01/init.c b/testsuites/smptests/smppsxsignal01/init.c
index 1882715b3b..d23a664e9a 100644
--- a/testsuites/smptests/smppsxsignal01/init.c
+++ b/testsuites/smptests/smppsxsignal01/init.c
@@ -32,7 +32,7 @@ typedef enum {
} test_state;
typedef struct {
- test_state state;
+ volatile test_state state;
pthread_t consumer;
pthread_t producer;
uint32_t consumer_processor;
@@ -42,13 +42,12 @@ typedef struct {
static void change_state(test_context *ctx, test_state new_state)
{
ctx->state = new_state;
- _CPU_SMP_Processor_event_broadcast();
}
static void wait_for_state(const test_context *ctx, test_state desired_state)
{
while ( ctx->state != desired_state ) {
- _CPU_SMP_Processor_event_receive();
+ /* Wait */
}
}