]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitb48bbb82e2b83537c500417d60218ad44446e572
tree11d3df0baa7c3941c188448046b3e51c7db7f578
parenta9af97aa0a12c30178dd7ad9af8887d5b9c4647b
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