powerpc/pseries: Remove unused hcall tracing instruction
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 May 2023 09:16:00 +0000 (19:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Aug 2023 22:39:30 +0000 (08:39 +1000)
commit61d7ebe0376e2640ba77be16e186b1a6c77eb3f7
tree7326c71b9e6d2ad966b2d2ef4d02ccba7b76267c
parent750bd41aeaeb1f0e0128aa4f8fcd6dd759713641
powerpc/pseries: Remove unused hcall tracing instruction

When JUMP_LABEL=n, the tracepoint refcount test in the pre-call stores
the refcount value to the stack, so the same value can be used for the
post-call (presumably to avoid racing with the value concurrently
changing).

On little-endian (ELFv2) that might have just worked by luck, because
32(r1) is STK_PARAM(R3) there and so the value save gets clobbered by
the tracing code when it's non-zero, but fortunately r3 is the hcall
number and 0 is an invalid hcall number so it should get clobbered by
another non-zero value. In any case, commit cc1adb5f32557
("powerpc/pseries: Use jump labels for hcall tracepoints") removed the
code that actually used the value stored, so now it's just dead code.

It's fragile to be storing to the stack like this, and confusing. Better
remove it.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230509091600.70994-2-npiggin@gmail.com
arch/powerpc/platforms/pseries/hvCall.S