core/sleep: set timeout for freeze/thaw operation to 1.5 seconds
authormsizanoen1 <msizanoen@qtmlabs.xyz>
Wed, 7 Dec 2022 16:22:05 +0000 (23:22 +0700)
committermsizanoen1 <msizanoen@qtmlabs.xyz>
Thu, 8 Dec 2022 11:58:00 +0000 (12:58 +0100)
commit432a32117506657186e16bd8e0642bbb30326bc4
tree1dba254b662524c8ba12b300cf6441ae5d4c976e
parent7fcd26978484b9a328b976799fbca038430f942f
core/sleep: set timeout for freeze/thaw operation to 1.5 seconds

A FreezeUnit operation can hang due to the presence of kernel threads
(see last 2 commits). Keeping the default configuration will mean the
system will hang for 25 seconds in suspend waiting for the response. 1.5
seconds should be sufficient for most cases.
src/sleep/sleep.c