]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/6xx: Store PGDIR physical address in a SPRG
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 21 Feb 2019 10:37:55 +0000 (10:37 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:16 +0000 (00:10 +1100)
commitd1130b6f6d4cc61b5f7f1b39e25c85061df87e27
tree22a11a62f16f26c387315108f5b6ff2892f9e14f
parent2936818082b5848ac63e22ccd26eeabd190e3c61
powerpc/6xx: Store PGDIR physical address in a SPRG

Use SPRN_SPRG2 to store the current thread PGDIR and
avoid reading thread_struct.pgdir at every TLB miss.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/cpu_setup_6xx.S
arch/powerpc/kernel/head_32.S
arch/powerpc/mm/hash_low_32.S