kernel/include/linux/prefetch.h
.. .. @@ -15,6 +15,7 @@ 15 15 #include <asm/processor.h> 16 16 #include <asm/cache.h> 17 17 18 +struct page;18 19 /* 19 20 prefetch(x) attempts to pre-emptively get the memory pointed to 20 21 by address "x" into the CPU L1 cache. .. .. @@ -62,4 +63,11 @@ 62 63 #endif 63 64 } 64 65 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 +#endif71 +}72 +65 73 #endif