]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Don't unbalance the return branch predictor in __replay_interrupt()
authorNicholas Piggin <npiggin@gmail.com>
Tue, 13 Jun 2017 13:05:49 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Jun 2017 09:46:28 +0000 (19:46 +1000)
commitb9e01372d3781995ea17141c14e86a91388514ad
tree11d3df0baa7c3941c188448046b3e51c7db7f578
parenta1d3f130e1d5654d592c516316f250fff3f495f2
powerpc/64s: Don't unbalance the return branch predictor in __replay_interrupt()

The __replay_interrupt() code is branched to with bl, but the caller is
returned to directly with rfid from the interrupt.

Instead, rfid to a stub that returns to the caller with blr, which
should keep the return branch predictor balanced.

Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S