diff options
| author | Tom Rini <[email protected]> | 2025-10-01 14:30:50 -0600 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2025-10-22 11:09:24 +0200 |
| commit | efe1d6303f243cf3588dd1974fbfdef0d7a02c42 (patch) | |
| tree | 794631609a2e9497166f9561e842fdfcde765997 /include/uthread.h | |
| parent | caa2ad6f8c8cc4c295c77aaff464c580d52c3ba6 (diff) | |
uthreads: Make use of CONFIG_IS_ENABLED consistently
We do not yet support UTHREADS in xPL phases. However, we have the need
to dummy out certain functions so that xPL can build when full U-Boot
has UTHREADS enabled. Update the few places that need to use
CONFIG_IS_ENABLED so that we have the correct dummy in xPL.
Signed-off-by: Tom Rini <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'include/uthread.h')
| -rw-r--r-- | include/uthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uthread.h b/include/uthread.h index 11a19aa9488..78dab77f196 100644 --- a/include/uthread.h +++ b/include/uthread.h @@ -72,7 +72,7 @@ struct uthread_mutex { #define UTHREAD_MUTEX_INITIALIZER { .state = UTHREAD_MUTEX_UNLOCKED } -#ifdef CONFIG_UTHREAD +#if CONFIG_IS_ENABLED(UTHREAD) /** * uthread_create() - Create a uthread object and make it ready for execution @@ -184,5 +184,5 @@ static inline bool uthread_grp_done(unsigned int grp_id) #define uthread_mutex_trylock(_mutex) ({ 0 }) #define uthread_mutex_unlock(_mutex) ({ 0; }) -#endif /* CONFIG_UTHREAD */ +#endif /* CONFIG_IS_ENABLED(UTHREAD) */ #endif /* _UTHREAD_H_ */ |
