diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-01-09 16:08:25 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-01-10 11:57:22 +0200 |
commit | 81bda12aad60b0dc9f76f6f7a575d7b812533a19 (patch) | |
tree | 48f95d1f8a281f2aa31153b122852c6642975365 /scripts/config | |
parent | a28215844d8db87aadb9bcce040e7897691ff6ba (diff) | |
download | linux-81bda12aad60b0dc9f76f6f7a575d7b812533a19.tar.bz2 |
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 <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'scripts/config')
0 files changed, 0 insertions, 0 deletions