summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/book3s32
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2021-06-03 11:41:40 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-06-16 17:09:08 +0300
commit882136fb2f5208a35ddad9205b20e5791edd4782 (patch)
treea3ee8083ebba9cd3a3c3ca4a200853c189a81a66 /arch/powerpc/mm/book3s32
parent863771a28e27dc9eaeaa88cea300370d032f0e0f (diff)
downloadlinux-882136fb2f5208a35ddad9205b20e5791edd4782.tar.xz
powerpc/32s: Simplify calculation of segment register content
segment register has VSID on bits 8-31. Bits 4-7 are reserved, there is no requirement to set them to 0. VSIDs are calculated from VSID of SR0 by adding 0x111. Even with highest possible VSID which would be 0xFFFFF0, adding 16 times 0x111 results in 0x1001100. So, the reserved bits are never overflowed, no need to clear the reserved bits after each calculation. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/ddc1cfd2ec8f3b2395c6a4d7f2b0c1aa1b1e64fb.1622708530.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/mm/book3s32')
0 files changed, 0 insertions, 0 deletions