summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/task.h')
-rw-r--r--include/task.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/task.h b/include/task.h
index fdfae9d5c6..2bcce8dc29 100644
--- a/include/task.h
+++ b/include/task.h
@@ -8,6 +8,7 @@
#ifndef __CROS_EC_TASK_H
#define __CROS_EC_TASK_H
+#include "atomic_t.h"
#include "common.h"
#include "compile_time_macros.h"
#include <stdbool.h>
@@ -187,7 +188,7 @@ static inline bool in_deferred_context(void)
/**
* Return a pointer to the bitmap of events of the task.
*/
-uint32_t *task_get_event_bitmap(task_id_t tskid);
+atomic_t *task_get_event_bitmap(task_id_t tskid);
/**
* Wait for the next event.
@@ -384,7 +385,7 @@ typedef struct k_mutex mutex_t;
#else
struct mutex {
uint32_t lock;
- uint32_t waiters;
+ atomic_t waiters;
};
typedef struct mutex mutex_t;