]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Don't add dummy frames when calling trace_hardirqs_on/off
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 30 Apr 2019 12:39:05 +0000 (12:39 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:28 +0000 (01:20 +1000)
commit06f7b02e0887c829c52dda939b92c8c6c40e23de
treeb56eef5869bae0012b62383694e17007ce8c804c
parent4f3d537aa754a9f7c66bfddee6fd29af4f7c20aa
powerpc/32: Don't add dummy frames when calling trace_hardirqs_on/off

No need to add dummy frames when calling trace_hardirqs_on or
trace_hardirqs_off. GCC properly handles empty stacks.

In addition, powerpc doesn't set CONFIG_FRAME_POINTER, therefore
__builtin_return_address(1..) returns NULL at all time. So the
dummy frames are definitely unneeded here.

In the meantime, avoid reading memory for loading r1 with a value
we already know.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/entry_32.S