diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2020-08-06 12:42:51 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-14 22:18:30 +0300 |
commit | 242587dca4a7e34023b4c87d5b52a74b2fe7255d (patch) | |
tree | 84599821a1cae0230808e56e68a63b6559090739 /lib | |
parent | 384d5cfe5d7e391a5584492bb2ce5794cbd691a9 (diff) | |
download | u-boot-242587dca4a7e34023b4c87d5b52a74b2fe7255d.tar.xz |
linux/compat.h: Add wait_event_timeout macro
Add wait_event_timeout - sleep until a condition gets true or a
timeout elapses.
This is a stripped version of the same from Linux kernel with the
following u-boot specific modifications:
- no wait queues supported
- use u-boot timer to detect timeouts
- check for Ctrl-C pressed during wait
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
[trini: Drop atomic_read from gadget/ether.c as this has existed for a
while and now causes problems]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions