diff options
author | Andy Shevchenko <[email protected]> | 2020-01-09 16:08:25 +0200 |
---|---|---|
committer | Andy Shevchenko <[email protected]> | 2020-01-10 11:57:22 +0200 |
commit | 81bda12aad60b0dc9f76f6f7a575d7b812533a19 (patch) | |
tree | 48f95d1f8a281f2aa31153b122852c6642975365 /lib/mpi | |
parent | a28215844d8db87aadb9bcce040e7897691ff6ba (diff) |
platform/x86: intel_atomisp2_pm: Refactor timeout loop
The timeout loop look more naturally when done like
unsigned long timeout = ...;
...
do {
...
if (cond)
return %OK;
sleep(...);
} while (time_before(timeout));
...print timeout error...
return %ERROR;
It also saves LOCs. Convert the driver to this format of timeout loop.
Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions