summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-10-15 07:44:29 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-28 15:00:01 +0000
commitce3303fa1bce651d3777152be3b1b79348e36a23 (patch)
tree2e1839283605543c073ff82452b418e14434769c /test
parentdaccb3adea9394116d7ab2c807e4a360cb5a93a1 (diff)
downloadchrome-ec-ce3303fa1bce651d3777152be3b1b79348e36a23.tar.gz
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 <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1879514 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/usb_prl.c6
1 files changed, 0 insertions, 6 deletions
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;
}
}