summaryrefslogtreecommitdiff
path: root/libcutils/partition_utils.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-10-05 17:09:07 -0700
committerJosh Gao <jmgao@google.com>2018-10-05 17:23:44 -0700
commit39c1f4bca5cf2f1c04286876c15b9e689df0e193 (patch)
tree0587decd80684516ad953b4f599c888db6b0a3db /libcutils/partition_utils.cpp
parenta3303fd21bfc2501fa361c8efa28da7a947cc3c4 (diff)
Revert "Revert "adb: detect some spin loops and abort.""
This reverts commit 04b9ca8c31e789db68858641a21424f99c02578c. 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
Diffstat (limited to 'libcutils/partition_utils.cpp')
0 files changed, 0 insertions, 0 deletions