[RFC PATCH V1 14/33] powerpc/mm: Use helper for finding pte bits mapping I/O area

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Jan 13 14:57:17 AEDT 2016


On Tue, 2016-01-12 at 10:42 +0300, Denis Kirjanov wrote:
> > +static inline unsigned long pte_io_cache_bits(void)
> > +{
> > +     return _PAGE_NO_CACHE | _PAGE_GUARDED;
> > +}
> This could be just plain #define

Or just use pgprot_noncached()

Cheers,
Ben.



More information about the Linuxppc-dev mailing list