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 /board/twinkie | |
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 'board/twinkie')
-rw-r--r-- | board/twinkie/simpletrace.c | 2 | ||||
-rw-r--r-- | board/twinkie/sniffer.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/board/twinkie/simpletrace.c b/board/twinkie/simpletrace.c index f68a09adcf..9f151f761f 100644 --- a/board/twinkie/simpletrace.c +++ b/board/twinkie/simpletrace.c @@ -197,7 +197,7 @@ void rx_event(void) pd_rx_disable_monitoring(0); /* trigger the analysis in the task */ #ifdef HAS_TASK_SNIFFER - task_set_event(TASK_ID_SNIFFER, 1 << i, 0); + task_set_event(TASK_ID_SNIFFER, 1 << i); #endif /* start reception only one CC line */ break; diff --git a/board/twinkie/sniffer.c b/board/twinkie/sniffer.c index 90359ba5e8..00effb8539 100644 --- a/board/twinkie/sniffer.c +++ b/board/twinkie/sniffer.c @@ -109,7 +109,7 @@ static void ep_tx(void) : EP_BUF_SIZE; STM32_TOGGLE_EP(USB_EP_SNIFFER, EP_TX_MASK, EP_TX_VALID, 0); /* wake up the processing */ - task_set_event(TASK_ID_SNIFFER, USB_EVENT, 0); + task_set_event(TASK_ID_SNIFFER, USB_EVENT); } static void ep_event(enum usb_ep_event evt) @@ -218,7 +218,7 @@ void tim_dma_handler(void) else tim_rx1_handler(stat); /* time to process the samples */ - task_set_event(TASK_ID_SNIFFER, USB_EVENT, 0); + task_set_event(TASK_ID_SNIFFER, USB_EVENT); } DECLARE_IRQ(STM32_IRQ_DMA_CHANNEL_4_7, tim_dma_handler, 1); |