From ce3303fa1bce651d3777152be3b1b79348e36a23 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Tue, 15 Oct 2019 07:44:29 -0600 Subject: test: remove unneeded hack for test waiting Now that the test time is deterministic (CL:1860474), we do not need to ensure that a task is woken up because it always will be now. BRANCH=none BUG=none TEST=ran usb_prl 100 times without issue. Change-Id: I88d0f705a05f192934b87704483ee2a83eb052ad Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1879514 Reviewed-by: Denis Brockus Reviewed-by: Edward Hill Commit-Queue: Denis Brockus --- test/usb_prl.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test') diff --git a/test/usb_prl.c b/test/usb_prl.c index e5692a8452..3843c49381 100644 --- a/test/usb_prl.c +++ b/test/usb_prl.c @@ -184,12 +184,6 @@ static void cycle_through_state_machine(int port, uint32_t num, uint32_t time) for (i = 0; i < num; i++) { task_wake(PD_PORT_TO_TASK_ID(port)); task_wait_event(time); - /* - * Ensure that the PD task actually ran otherwise loop again. - * This can happen for slow/overloaded cpus (e.g. cq machine). - */ - if (TASK_EVENT_WAKE & pending_pd_task_events(port)) - --i; } } -- cgit v1.2.1