[PATCH v3 8/8] linux/iopoll: enable polled timeouts for PBL_CLOCKSOURCE
Stefan Kerkmann <[email protected]>
| Newsgroups | org.infradead.lists.barebox |
|---|---|
| Message-ID | <20260817-feature-pbl-get-time-ns-v3-8-9874c1438855@pengutronix.de> |
This enables the usage of the polled timeout functions in the barebox pbl with real timeouts for supported architectures. Currently only AARCH64 and MACH_AM33XX is enabled. Signed-off-by: Stefan Kerkmann <[email protected]> --- include/linux/iopoll.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index a6fade2a11..21014b73da 100644 --- a/include/linux/iopoll.h +++ b/include/linux/iopoll.h @@ -12,7 +12,7 @@ #include <clock.h> #include <pbl.h> -#if IN_PROPER +#if IN_PROPER || IS_ENABLED(CONFIG_PBL_CLOCKSOURCE) # define read_poll_get_time_ns() get_time_ns() # define read_poll_is_timeout(s, t) is_timeout(s, t) #else @@ -38,8 +38,8 @@ * When available, you'll probably want to use one of the specialized * macros defined below rather than this macro directly. * - * We do not have timing functions in the PBL, so ignore the timeout value and - * loop infinitely here. + * We might not have timing functions in the PBL, so ignore the timeout value + * and loop infinitely here. */ #define read_poll_timeout(op, val, cond, timeout_us, args...) \ ({ \ -- 2.47.3