Skip to content

Commit dfb5f8c

Browse files
athira-rajeevmpe
authored andcommitted
powerpc/pseries: Remove unused r0 in the hcall tracing code
In the plpar_hcall trace code, currently we use r0 to store the value of r4. But this value is not used subsequently in the code. Hence remove this unused save to r0 in plpar_hcall and plpar_hcall9 Suggested-by: Naveen N Rao <naveen@kernel.org> Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230929172337.7906-2-atrajeev@linux.vnet.ibm.com
1 parent 3b67876 commit dfb5f8c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/powerpc/platforms/pseries/hvCall.S

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ _GLOBAL_TOC(plpar_hcall)
184184
plpar_hcall_trace:
185185
HCALL_INST_PRECALL(R5)
186186

187-
mr r0,r4
188-
189187
mr r4,r5
190188
mr r5,r6
191189
mr r6,r7
@@ -295,8 +293,6 @@ _GLOBAL_TOC(plpar_hcall9)
295293
plpar_hcall9_trace:
296294
HCALL_INST_PRECALL(R5)
297295

298-
mr r0,r4
299-
300296
mr r4,r5
301297
mr r5,r6
302298
mr r6,r7

0 commit comments

Comments
 (0)