]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: indirect function call use bctrl rather than blrl in ret_from_kernel_thread
authorNicholas Piggin <npiggin@gmail.com>
Thu, 11 Jun 2020 12:11:19 +0000 (22:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 00:37:55 +0000 (10:37 +1000)
commit821868e38a763244b008fa79dbff988cf2fc41f1
treeb989e32f9e0abc1a5b113c3460cd5746e3e54b46
parente86d80f3f3da4d1072ca810bbe97a8ef4bd674b0
powerpc/64: indirect function call use bctrl rather than blrl in ret_from_kernel_thread

blrl is not recommended to use as an indirect function call, as it may
corrupt the link stack predictor.

This is not a performance critical path but this should be fixed for
consistency.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200611121119.1015740-1-npiggin@gmail.com
arch/powerpc/kernel/entry_64.S