Merge tag 'drm-misc-next-2023-09-11-1' of git://anongit.freedesktop.org/drm/drm-misc...
[linux-2.6-block.git] / include / linux / cacheflush.h
CommitLineData
522a0032
MWO
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_CACHEFLUSH_H
3#define _LINUX_CACHEFLUSH_H
4
5#include <asm/cacheflush.h>
6
30d024b5
HX
7struct folio;
8
522a0032 9#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
29d26f12 10#ifndef flush_dcache_folio
522a0032
MWO
11void flush_dcache_folio(struct folio *folio);
12#endif
13#else
14static inline void flush_dcache_folio(struct folio *folio)
15{
16}
29d26f12 17#define flush_dcache_folio flush_dcache_folio
522a0032
MWO
18#endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
19
203b7b6a
MWO
20#ifndef flush_icache_pages
21static inline void flush_icache_pages(struct vm_area_struct *vma,
22 struct page *page, unsigned int nr)
23{
24}
25#endif
26
27#define flush_icache_page(vma, page) flush_icache_pages(vma, page, 1)
28
522a0032 29#endif /* _LINUX_CACHEFLUSH_H */