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

powerpc/32s: Remove unused counters incremented by create_hpte()

primary_pteg_full and htab_hash_searches are not used.

Remove them.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/6470ab99e58c84a5445af43ce4d1d772b0dc3e93.1606247495.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
c5ccb4e7 7bfe54b5

-15
-15
arch/powerpc/mm/book3s32/hash_low.S
··· 353 353 beq+ 10f /* no PTE: go look for an empty slot */ 354 354 tlbie r4 355 355 356 - lis r4, (htab_hash_searches - PAGE_OFFSET)@ha 357 - lwz r6, (htab_hash_searches - PAGE_OFFSET)@l(r4) 358 - addi r6,r6,1 /* count how many searches we do */ 359 - stw r6, (htab_hash_searches - PAGE_OFFSET)@l(r4) 360 - 361 356 /* Search the primary PTEG for a PTE whose 1st (d)word matches r5 */ 362 357 mtctr r0 363 358 addi r4,r3,-HPTE_SIZE ··· 381 386 TST_V(r6) /* test valid bit */ 382 387 bdnzf 2,1b /* loop while ctr != 0 && !cr0.eq */ 383 388 beq+ .Lfound_empty 384 - 385 - /* update counter of times that the primary PTEG is full */ 386 - lis r4, (primary_pteg_full - PAGE_OFFSET)@ha 387 - lwz r6, (primary_pteg_full - PAGE_OFFSET)@l(r4) 388 - addi r6,r6,1 389 - stw r6, (primary_pteg_full - PAGE_OFFSET)@l(r4) 390 389 391 390 patch_site 0f, patch__hash_page_C 392 391 /* Search the secondary PTEG for an empty slot */ ··· 457 468 .section .bss 458 469 .align 2 459 470 next_slot: 460 - .space 4 461 - primary_pteg_full: 462 - .space 4 463 - htab_hash_searches: 464 471 .space 4 465 472 .previous 466 473