powerpc/mm: Move out definition of CPU specific is_write bits
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:29 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:44 +0000 (16:06 +1000)
commit41b464e5e5675476a5fd923aea8d5a87d2493d93
tree63f3e9ef354c6e9e9216ebd7ed48b9ee6c2cdf8e
parentb4c001dc44f055a6813e30815c3abbb0404cbc98
powerpc/mm: Move out definition of CPU specific is_write bits

Define a common page_fault_is_write() helper and use it

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c