diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-11-22 09:47:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-25 08:42:49 +0100 |
commit | 6a7e2f92b0ba7a51e01961b9aa840ab5b086115b (patch) | |
tree | 51791544c0744b65705dffc30d306f92e56b2f07 /include | |
parent | 128161a7f88beb1e3e604807d1eefa6d11d2724e (diff) | |
download | barebox-6a7e2f92b0ba7a51e01961b9aa840ab5b086115b.tar.gz barebox-6a7e2f92b0ba7a51e01961b9aa840ab5b086115b.tar.xz |
asm-generic: move sync_caches_for_execution declaration to <asm/cache.h>
We have three architectures defining sync_caches_for_execution(). Have
them all do so in a header of the same name to allow using it in common
code later on, like in an EFI image loading routine.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211122084732.2597109-8-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/cache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-generic/cache.h b/include/asm-generic/cache.h new file mode 100644 index 0000000000..a766d835fd --- /dev/null +++ b/include/asm-generic/cache.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __ASM_GENERIC_CACHE_H_ + +#ifndef sync_caches_for_execution +#define sync_caches_for_execution() (void)0 +#endif + +#endif |