Commit graph

2 commits

Author SHA1 Message Date
Steven Moreland
0e63fb5593 block_suspend: avoid CPU spinloop
For verification of blocked suspend or other unit testing, the spinloop
is fine. However, making it sleep so that it is more viable to assist
with power testing or for any other test where avoiding changes to
device performance is important.

Bug: N/A
Test: run, and ps:
root          4179  4168   18720   4724 __se_sys_nanosleep_time32 0 S block_suspend

Change-Id: I81545ae7db1c1fad2cb94d00456d1a6773868111
2020-10-07 18:03:00 +00:00
Tri Vo
032365882b block_suspend: test util to block suspend from shell
Bug: 143284916
Test: ./block_suspend; dumpsys suspend_control shows that wakelocks are
created as expected
Change-Id: Ifacb4f476632e0c36f7ec4f59164f91e89faf1f1
2019-11-11 12:32:59 -08:00