On 3/23/07, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote:
+#define ARCH_HAS_FLUSH_ANON_PAGE +static inline void flush_anon_page(struct vm_area_struct *vma, + struct page *page, unsigned long vmaddr) +{ + extern void __flush_anon_page(struct vm_area_struct *vma, + struct page *, unsigned long); + if (PageAnon(page)) + __flush_anon_page(vma, page, vmaddr); +} +
Shouldn't you add a test against cpu_has_dc_aliases here and thus avoid an useless call to __flush_anon_page() ? -- Franck