Skip to content

Commit

Permalink
powerpc/64: Remove static branch hints from memset()
Browse files Browse the repository at this point in the history
Static branch hints override dynamic branch prediction on recent
POWER CPUs. We should only use them when we are overwhelmingly
sure of the direction.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Anton Blanchard authored and Michael Ellerman committed Sep 17, 2018
1 parent ba2dd8a commit be54c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/lib/mem_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ _GLOBAL(memset)
.Lms: PPC_MTOCRF(1,r0)
mr r6,r3
blt cr1,8f
beq+ 3f /* if already 8-byte aligned */
beq 3f /* if already 8-byte aligned */
subf r5,r0,r5
bf 31,1f
stb r4,0(r6)
Expand Down Expand Up @@ -85,7 +85,7 @@ _GLOBAL(memset)
addi r6,r6,8
8: cmpwi r5,0
PPC_MTOCRF(1,r5)
beqlr+
beqlr
bf 29,9f
stw r4,0(r6)
addi r6,r6,4
Expand Down

0 comments on commit be54c12

Please sign in to comment.