Revert "Revert "adb: detect some spin loops and abort.""
This reverts commit 04b9ca8c. The original incarnation of this patch was falsely triggering when our poll would block with no activity happening for an extended amount of time. When the poll returned, we would immediately flag that as a spin loop. Solve this by tracking the last time we looped, to detect this. While we're at it, switch from CLOCK_MONOTONIC to CLOCK_BOOTTIME, for the same reason. Change-Id: Ibcdf69d93f7b6012142cafd72066f39494c1f84b Test: ./test_device.py
Loading
Please register or sign in to comment