Searched hist:ad1b0122bdc96cbcfcfbc9ef59f9bf3658802a72 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/arch/powerpc/lib/ |
H A D | copy_32.S | diff ad1b0122bdc96cbcfcfbc9ef59f9bf3658802a72 Wed Aug 23 09:54:38 CDT 2017 Christophe Leroy <christophe.leroy@c-s.fr> powerpc/32: remove a NOP from memset()
memset() is patched after initialisation to activate the optimised part which uses cache instructions.
Today we have a 'b 2f' to skip the optimised patch, which then gets replaced by a NOP, implying a useless cycle consumption. As we have a 'bne 2f' just before, we could use that instruction for the live patching, hence removing the need to have a dedicated 'b 2f' to be replaced by a NOP.
This patch changes the 'bne 2f' by a 'b 2f'. During init, that 'b 2f' is then replaced by 'bne 2f'
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | setup_32.c | diff ad1b0122bdc96cbcfcfbc9ef59f9bf3658802a72 Wed Aug 23 09:54:38 CDT 2017 Christophe Leroy <christophe.leroy@c-s.fr> powerpc/32: remove a NOP from memset()
memset() is patched after initialisation to activate the optimised part which uses cache instructions.
Today we have a 'b 2f' to skip the optimised patch, which then gets replaced by a NOP, implying a useless cycle consumption. As we have a 'bne 2f' just before, we could use that instruction for the live patching, hence removing the need to have a dedicated 'b 2f' to be replaced by a NOP.
This patch changes the 'bne 2f' by a 'b 2f'. During init, that 'b 2f' is then replaced by 'bne 2f'
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
|