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 /chip/ish | |
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 'chip/ish')
-rw-r--r-- | chip/ish/heci.c | 2 | ||||
-rw-r--r-- | chip/ish/i2c.c | 2 | ||||
-rw-r--r-- | chip/ish/ipc_heci.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/chip/ish/heci.c b/chip/ish/heci.c index 309a17c0a1..4a9bc9551b 100644 --- a/chip/ish/heci.c +++ b/chip/ish/heci.c @@ -706,7 +706,7 @@ static int handle_flow_control_cmd(struct hbm_flow_control *flow_ctrl) mutex_unlock(&connect->cred_lock); if (waiting_task) - task_set_event(waiting_task, TASK_EVENT_IPC_READY, 0); + task_set_event(waiting_task, TASK_EVENT_IPC_READY); return EC_SUCCESS; } diff --git a/chip/ish/i2c.c b/chip/ish/i2c.c index 962379cad3..eeb4b38d60 100644 --- a/chip/ish/i2c.c +++ b/chip/ish/i2c.c @@ -446,7 +446,7 @@ static void i2c_interrupt_handler(struct i2c_context *ctx) /* disable interrupts */ i2c_intr_switch(ctx->base, DISABLE_INT); - task_set_event(ctx->wait_task_id, TASK_EVENT_I2C_IDLE, 0); + task_set_event(ctx->wait_task_id, TASK_EVENT_I2C_IDLE); } static void i2c_isr_bus0(void) diff --git a/chip/ish/ipc_heci.c b/chip/ish/ipc_heci.c index 5271aa3a91..3b8f4a31d1 100644 --- a/chip/ish/ipc_heci.c +++ b/chip/ish/ipc_heci.c @@ -377,7 +377,7 @@ static void handle_msg_recv_interrupt(const uint32_t peer_id) if (!invalid_msg) { /* send event to task */ task_set_event(ctx->msg_events[protocol].task_id, - ctx->msg_events[protocol].event, 0); + ctx->msg_events[protocol].event); } else { CPRINTS("discard msg (%d) : %d", protocol, invalid_msg); |