summaryrefslogtreecommitdiff
path: root/include/linux/cacheflush.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-29 08:03:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-29 08:03:05 +0100
commit24cd719712aeb5b5e4562f37ef5f7ba33040b59f (patch)
tree689077bc9bf2e9f8b7df1c6a37dcefe8045912d7 /include/linux/cacheflush.h
parent84c365f8ff8fc93a34d6cabe780d0b0f49c177e2 (diff)
parentd58071a8a76d779eedab38033ae4c821c30295a5 (diff)
downloadlwn-24cd719712aeb5b5e4562f37ef5f7ba33040b59f.tar.gz
lwn-24cd719712aeb5b5e4562f37ef5f7ba33040b59f.zip
Merge 5.16-rc3 into staging-next
We need the staging driver fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/cacheflush.h')
-rw-r--r--include/linux/cacheflush.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/cacheflush.h b/include/linux/cacheflush.h
new file mode 100644
index 000000000000..fef8b607f97e
--- /dev/null
+++ b/include/linux/cacheflush.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_CACHEFLUSH_H
+#define _LINUX_CACHEFLUSH_H
+
+#include <asm/cacheflush.h>
+
+#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
+#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO
+void flush_dcache_folio(struct folio *folio);
+#endif
+#else
+static inline void flush_dcache_folio(struct folio *folio)
+{
+}
+#define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 0
+#endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
+
+#endif /* _LINUX_CACHEFLUSH_H */