]> 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)
commit806f17e493e9f36786b74d808c73522da1a75998
tree22a11a62f16f26c387315108f5b6ff2892f9e14f
parent5a559858e118e3be421e42853134def9ae519c1c
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