1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_CACHEFLUSH_H 2 #ifndef _LINUX_CACHEFLUSH_H 3 #define _LINUX_CACHEFLUSH_H 3 #define _LINUX_CACHEFLUSH_H 4 4 5 #include <asm/cacheflush.h> 5 #include <asm/cacheflush.h> 6 6 7 struct folio; 7 struct folio; 8 8 9 #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 9 #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 10 #ifndef flush_dcache_folio 10 #ifndef flush_dcache_folio 11 void flush_dcache_folio(struct folio *folio); 11 void flush_dcache_folio(struct folio *folio); 12 #endif 12 #endif 13 #else 13 #else 14 static inline void flush_dcache_folio(struct f 14 static inline void flush_dcache_folio(struct folio *folio) 15 { 15 { 16 } 16 } 17 #define flush_dcache_folio flush_dcache_folio 17 #define flush_dcache_folio flush_dcache_folio 18 #endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */ 18 #endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */ 19 19 20 #ifndef flush_icache_pages 20 #ifndef flush_icache_pages 21 static inline void flush_icache_pages(struct v 21 static inline void flush_icache_pages(struct vm_area_struct *vma, 22 struct pa 22 struct page *page, unsigned int nr) 23 { 23 { 24 } 24 } 25 #endif 25 #endif 26 26 27 #define flush_icache_page(vma, page) flush_ 27 #define flush_icache_page(vma, page) flush_icache_pages(vma, page, 1) 28 28 29 #endif /* _LINUX_CACHEFLUSH_H */ 29 #endif /* _LINUX_CACHEFLUSH_H */ 30 30
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.