Re: [RFC PATCH V1 14/33] powerpc/mm: Use helper for finding pte bits mapping I/O area
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2016-01-13 03:57:35
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2016-01-13 03:57:35
On Tue, 2016-01-12 at 10:42 +0300, Denis Kirjanov wrote:
quoted
+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.