powerpc: store and restore the pkey state across context switches
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:31 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:59:00 +0000 (22:59 +1100)
commit06bb53b33804613627c7ca1eda246459a7be2803
tree61428a22fe89565f607bf32480a6173255fb8c7b
parentdcf872956d444bbbd46f601024ea989ced03f8a7
powerpc: store and restore the pkey state across context switches

Store and restore the AMR, IAMR and UAMOR register state of the task
before scheduling out and after scheduling in, respectively.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/include/asm/pkeys.h
arch/powerpc/include/asm/processor.h
arch/powerpc/kernel/process.c
arch/powerpc/mm/pkeys.c