提交 3d4f5f58 编写于 作者: A Anshuman Khandual 提交者: Michael Ellerman

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: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: NAnshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 94322ed8
...@@ -852,18 +852,6 @@ static void native_flush_hash_range(unsigned long number, int local) ...@@ -852,18 +852,6 @@ static void native_flush_hash_range(unsigned long number, int local)
local_irq_restore(flags); local_irq_restore(flags);
} }
static int native_register_proc_table(unsigned long base, unsigned long page_size,
unsigned long table_size)
{
unsigned long patb1 = base << 25; /* VSID */
patb1 |= (page_size << 5); /* sllp */
patb1 |= table_size;
partition_tb->patb1 = cpu_to_be64(patb1);
return 0;
}
void __init hpte_init_native(void) void __init hpte_init_native(void)
{ {
mmu_hash_ops.hpte_invalidate = native_hpte_invalidate; mmu_hash_ops.hpte_invalidate = native_hpte_invalidate;
...@@ -875,7 +863,4 @@ void __init hpte_init_native(void) ...@@ -875,7 +863,4 @@ void __init hpte_init_native(void)
mmu_hash_ops.hpte_clear_all = native_hpte_clear; mmu_hash_ops.hpte_clear_all = native_hpte_clear;
mmu_hash_ops.flush_hash_range = native_flush_hash_range; mmu_hash_ops.flush_hash_range = native_flush_hash_range;
mmu_hash_ops.hugepage_invalidate = native_hugepage_invalidate; mmu_hash_ops.hugepage_invalidate = native_hugepage_invalidate;
if (cpu_has_feature(CPU_FTR_ARCH_300))
register_process_table = native_register_proc_table;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册