powerpc/mm: Warn on flushing tlb page in kernel context
authorArseny Solokha <asolokha@kb.kras.ru>
Wed, 4 Feb 2015 02:18:02 +0000 (13:18 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Feb 2015 02:19:27 +0000 (13:19 +1100)
commitc2c896bee08e1461fc24f9bf7dd57e2c63f6db70
tree35315d0675d8c56dd3b3861081c6653799375987
parent7f43e71e8c538356efd5b33a183e6d9ace4739a5
powerpc/mm: Warn on flushing tlb page in kernel context

Function __flush_tlb_page() must only be called for user contexts, so
put in extra hardening to warn on calling it for kernel context.

Signed-off-by: Arseny Solokha <asolokha@kb.kras.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/tlb_nohash.c