]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Reduce exception alignment
authorNicholas Piggin <npiggin@gmail.com>
Thu, 13 Oct 2016 03:43:52 +0000 (14:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 00:11:51 +0000 (11:11 +1100)
commit8e7d4c2dca3e7a09099df29bb6bc76913229f0ee
tree437623c6fe2f44a63a62e754fb423b84bd62967a
parent7fe2b148816307a04caf2a0d7d0da98875db1f53
powerpc/64s: Reduce exception alignment

Exception handlers are aligned to 128 bytes (L1 cache) on 64s, which is
overkill. It can reduce the icache footprint of any individual exception
path. However taken as a whole, the expansion in icache footprint seems
likely to be counter-productive and cause more total misses.

Create IFETCH_ALIGN_SHIFT/BYTES, which should give optimal ifetch
alignment with much more reasonable alignment. This saves 1792 bytes
from head_64.o text with an allmodconfig build.

Other subarchitectures should define appropriate IFETCH_ALIGN_SHIFT
values if this becomes more widely used.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cache.h
arch/powerpc/include/asm/head-64.h
arch/powerpc/kernel/exceptions-64s.S