diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2020-11-06 09:20:56 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-14 19:59:09 +0000 |
commit | f96f176c303a73973d7cf5ddf1abf86f534a6e39 (patch) | |
tree | a793c58f008cfa94cc93ea34627fd1b6457e3a1b /extra | |
parent | a23ef3d074335f2b6953194671f966117fd1fe60 (diff) | |
download | chrome-ec-f96f176c303a73973d7cf5ddf1abf86f534a6e39.tar.gz |
task_set_event: remove the wait argument
There is an option in the task_set_event function which force
the calling task to wait for an event. However, the option is never
used thus remove it.
This also will help in the Zephyr migration process.
BUG=b:172360521
BRANCH=none
TEST=make buildall
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/lightbar/main.c | 5 | ||||
-rw-r--r-- | extra/lightbar/simulation.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/extra/lightbar/main.c b/extra/lightbar/main.c index 7ef3d07c9e..5acf3d427a 100644 --- a/extra/lightbar/main.c +++ b/extra/lightbar/main.c @@ -95,9 +95,8 @@ uint32_t task_wait_event(int timeout_us) return event; } -uint32_t task_set_event(task_id_t tskid, /* always LIGHTBAR */ - uint32_t event, - int wait_for_reply) /* always 0 */ +uint32_t task_set_event(task_id_t tskid, /* always LIGHTBAR */ + uint32_t event) { pthread_mutex_lock(&task_mutex); task_event = event; diff --git a/extra/lightbar/simulation.h b/extra/lightbar/simulation.h index eb878ed04e..4df7b69411 100644 --- a/extra/lightbar/simulation.h +++ b/extra/lightbar/simulation.h @@ -97,7 +97,7 @@ struct host_cmd_handler_args { /* EC functions that we have to provide */ uint32_t task_wait_event(int timeout_us); -uint32_t task_set_event(task_id_t tskid, uint32_t event, int wait_for_reply); +uint32_t task_set_event(task_id_t tskid, uint32_t event); timestamp_t get_time(void); int system_add_jump_tag(uint16_t tag, int version, int size, const void *data); uint8_t *system_get_jump_tag(uint16_t tag, int *version, int *size); |