Skip to content

Commit dad477c

Browse files
antonblanchardozbenh
authored andcommitted
powerpc: POWER7 copy_to_user/copy_from_user patch applied twice
"powerpc: Use enhanced touch instructions in POWER7 copy_to_user/copy_from_user" was applied twice. Remove one. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 7256a5d commit dad477c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

arch/powerpc/lib/copyuser_power7.S

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -316,37 +316,6 @@ err1; stb r0,0(r3)
316316
lis r8,0x8000 /* GO=1 */
317317
clrldi r8,r8,32
318318

319-
.machine push
320-
.machine "power4"
321-
dcbt r0,r6,0b01000
322-
dcbt r0,r7,0b01010
323-
dcbtst r0,r9,0b01000
324-
dcbtst r0,r10,0b01010
325-
eieio
326-
dcbt r0,r8,0b01010 /* GO */
327-
.machine pop
328-
329-
/*
330-
* We prefetch both the source and destination using enhanced touch
331-
* instructions. We use a stream ID of 0 for the load side and
332-
* 1 for the store side.
333-
*/
334-
clrrdi r6,r4,7
335-
clrrdi r9,r3,7
336-
ori r9,r9,1 /* stream=1 */
337-
338-
srdi r7,r5,7 /* length in cachelines, capped at 0x3FF */
339-
cmpldi cr1,r7,0x3FF
340-
ble cr1,1f
341-
li r7,0x3FF
342-
1: lis r0,0x0E00 /* depth=7 */
343-
sldi r7,r7,7
344-
or r7,r7,r0
345-
ori r10,r7,1 /* stream=1 */
346-
347-
lis r8,0x8000 /* GO=1 */
348-
clrldi r8,r8,32
349-
350319
.machine push
351320
.machine "power4"
352321
dcbt r0,r6,0b01000

0 commit comments

Comments
 (0)