]> 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)
commitfa681b34841bb89e353bb6d01c28e6742d47351f
tree61428a22fe89565f607bf32480a6173255fb8c7b
parent76ccd4c44a554074064754c934e4272c177403da
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