diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2021-11-24 13:37:32 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-29 22:04:50 +0000 |
commit | fdb111b606f2fd31dedbd8fbaed29e3ceb027683 (patch) | |
tree | 2a7ac6c806da6aa6734cf46e03c853042b4a0536 /include/task.h | |
parent | bec6095ba94a83af6affda9e46a5ced4eeaaeabe (diff) | |
download | chrome-ec-fdb111b606f2fd31dedbd8fbaed29e3ceb027683.tar.gz |
task: change task events bitmask to atomic_t
The events bitmask is used only with atomic_* functions or for reading,
so change to variable type to atomic_t.
It shouldn't change the generated code.
It will be useful for incoming commits related to modifying atomic_t
caused by a change in Zephyr upstream (atomic_t from int to long).
BUG=b:207082842
TEST=make buildall && zmake testall && build_compare.sh -b all
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ia0ff4a20f9ed6c3728b1bd8b6cab3b32ebfcc36b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300321
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/task.h')
-rw-r--r-- | include/task.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/task.h b/include/task.h index fdfae9d5c6..9d3dd661e8 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. |