]> Gentwo Git Trees - linux/.git/commit
powerpc/8xx: Remove offset in SPRN_M_TWB
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 18 Aug 2025 09:24:22 +0000 (11:24 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Sat, 6 Sep 2025 10:31:24 +0000 (16:01 +0530)
commit96c79fef228157baddae6574555353535772f109
treed5474a0b33d7e9a3f6aebf46aa6b7b4a2ba8bcc9
parenta41de5ccff85a0fe45ea1b4078230bf53faa7dc4
powerpc/8xx: Remove offset in SPRN_M_TWB

SPRN_M_TWB contains the address of task PGD minus an offset which
compensates the offset required when accessing the kernel PGDIR.
However, since commit ac9f97ff8b32 ("powerpc/8xx: Inconditionally use
task PGDIR in DTLB misses") and commit 33c527522f39 ("powerpc/8xx:
Inconditionally use task PGDIR in ITLB misses") kernel PGDIR is not
used anymore in hot paths.

Remove this offset which was added by
commit fde5a9057fcf ("powerpc/8xx: Optimise access to swapper_pg_dir")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[maddy: Fixed checkpatch.pl warning for "pathes"]
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/9710d960b512996e64beebfd368cfeaadb28b3ba.1755509047.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_8xx.S
arch/powerpc/mm/nohash/mmu_context.c