[PATCH 12/20] powerpc/mm: Add hook to flush pgtables when a PTE page is freed
Stephen Rothwell
sfr at canb.auug.org.au
Thu Jul 23 16:46:30 EST 2009
Hi Ben,
On Thu, 23 Jul 2009 15:59:46 +1000 Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote:
>
> +#ifdef CONFIG_PPC_BOOK3E
> +extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address);
> +#else
> +#define tlb_flush_pgtable(tlb, address) do { } while(0)
static inline void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address) {}
> #else
> -#define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, (pte))
> +#define __pte_free_tlb(tlb,pte,address) \
> +do { \
> + tlb_flush_pgtable(tlb, address); \
> + pte_free((tlb)->mm, (pte)); \
> +} while (0)
This could (should?) be a static inline as well.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090723/22975a50/attachment.pgp>
More information about the Linuxppc-dev
mailing list