Skip to content

Commit

Permalink
powerpc/pseries: Remove unused r0 in the hcall tracing code
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Athira Rajeev authored and Michael Ellerman committed Sep 30, 2023
1 parent 3b67876 commit dfb5f8c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/platforms/pseries/hvCall.S
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ _GLOBAL_TOC(plpar_hcall)
plpar_hcall_trace:
HCALL_INST_PRECALL(R5)

mr r0,r4

mr r4,r5
mr r5,r6
mr r6,r7
Expand Down Expand Up @@ -295,8 +293,6 @@ _GLOBAL_TOC(plpar_hcall9)
plpar_hcall9_trace:
HCALL_INST_PRECALL(R5)

mr r0,r4

mr r4,r5
mr r5,r6
mr r6,r7
Expand Down

0 comments on commit dfb5f8c

Please sign in to comment.