X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Fasm-um%2Fpgtable.h;h=e57ff136ee510e884ea4474a7e2f21bde36b2390;hb=48c871c1f6a7c7044dd76774fb469e65c7e2e4e8;hp=188f726217766f8e45bc7dce5a130e509d9b2f68;hpb=946b92437e550d6ed80213bf54a1f383e141aede;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index 188f7262177..e57ff136ee5 100644 --- a/include/asm-um/pgtable.h +++ b/include/asm-um/pgtable.h @@ -408,6 +408,15 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) #include +#ifdef CONFIG_HIGHMEM +/* Clear a kernel PTE and flush it from the TLB */ +#define kpte_clear_flush(ptep, vaddr) \ +do { \ + pte_clear(&init_mm, vaddr, ptep); \ + __flush_tlb_one(vaddr); \ +} while (0) +#endif + #endif #endif