]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66ef5807c3c15deb37bb8a3d4efd5d6f771d20e7
tree61428a22fe89565f607bf32480a6173255fb8c7b
parent4abe5b8ed39d4dd91a0f0ee6bb3b50b708420794
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