Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anton Blanchard and committed by
Benjamin Herrenschmidt
dad477cc 7256a5d2

-31
-31
arch/powerpc/lib/copyuser_power7.S
··· 326 326 dcbt r0,r8,0b01010 /* GO */ 327 327 .machine pop 328 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 - 350 - .machine push 351 - .machine "power4" 352 - dcbt r0,r6,0b01000 353 - dcbt r0,r7,0b01010 354 - dcbtst r0,r9,0b01000 355 - dcbtst r0,r10,0b01010 356 - eieio 357 - dcbt r0,r8,0b01010 /* GO */ 358 - .machine pop 359 - 360 329 beq .Lunwind_stack_nonvmx_copy 361 330 362 331 /*