commit | 81bda12aad60b0dc9f76f6f7a575d7b812533a19 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Thu Jan 09 16:08:25 2020 +0200 |
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Fri Jan 10 11:57:22 2020 +0200 |
tree | 48f95d1f8a281f2aa31153b122852c6642975365 | |
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 <andriy.shevchenko@linux.intel.com>