Skip to content

Commit 3d4f5f5

Browse files
Anshuman Khandualmpe
authored andcommitted
powerpc/mm: Drop the function native_register_proc_table()
This is left over from the segment table implementation and not getting called from any where now. Hence just drop it. Suggested-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 94322ed commit 3d4f5f5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

arch/powerpc/mm/hash_native_64.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -852,18 +852,6 @@ static void native_flush_hash_range(unsigned long number, int local)
852852
local_irq_restore(flags);
853853
}
854854

855-
static int native_register_proc_table(unsigned long base, unsigned long page_size,
856-
unsigned long table_size)
857-
{
858-
unsigned long patb1 = base << 25; /* VSID */
859-
860-
patb1 |= (page_size << 5); /* sllp */
861-
patb1 |= table_size;
862-
863-
partition_tb->patb1 = cpu_to_be64(patb1);
864-
return 0;
865-
}
866-
867855
void __init hpte_init_native(void)
868856
{
869857
mmu_hash_ops.hpte_invalidate = native_hpte_invalidate;
@@ -875,7 +863,4 @@ void __init hpte_init_native(void)
875863
mmu_hash_ops.hpte_clear_all = native_hpte_clear;
876864
mmu_hash_ops.flush_hash_range = native_flush_hash_range;
877865
mmu_hash_ops.hugepage_invalidate = native_hugepage_invalidate;
878-
879-
if (cpu_has_feature(CPU_FTR_ARCH_300))
880-
register_process_table = native_register_proc_table;
881866
}

0 commit comments

Comments
 (0)