hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/include/linux/prefetch.h
....@@ -15,6 +15,7 @@
1515 #include <asm/processor.h>
1616 #include <asm/cache.h>
1717
18
+struct page;
1819 /*
1920 prefetch(x) attempts to pre-emptively get the memory pointed to
2021 by address "x" into the CPU L1 cache.
....@@ -62,4 +63,11 @@
6263 #endif
6364 }
6465
66
+static inline void prefetch_page_address(struct page *page)
67
+{
68
+#if defined(WANT_PAGE_VIRTUAL) || defined(HASHED_PAGE_VIRTUAL)
69
+ prefetch(page);
70
+#endif
71
+}
72
+
6573 #endif