powerpc/mm: Move/simplify faulthandler_disabled() and !mm check
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:40 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:49 +0000 (16:06 +1000)
commit11ccdd33d6ad8d0ade866fc1c6c691c0c57b6ace
treee9218255e8c3be542dd71c98266cf0fbd8e6ff1b
parent2865d08dd9ea876524652f3900b4b3b9c8b22e77
powerpc/mm: Move/simplify faulthandler_disabled() and !mm check

Do the check before we re-enable interrupts and clean the code
up a bit.

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