Hi Ben, On Thu, 23 Jul 2009 15:59:46 +1000 Benjamin Herrenschmidt <[email protected]> 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 [email protected]
http://www.canb.auug.org.au/~sfr/
pgprf7PTEyAqW.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
