]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Move register_process_table() out of ppc_md
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Aug 2016 05:32:06 +0000 (15:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Aug 2016 10:22:34 +0000 (20:22 +1000)
commit42142ddf617a767e068d0049a6d87f9071ef25fe
treee965347d6008f53dc8b14ebf136e95170cf03dda
parent0b0c7302888107e38a0b07d3f6876f0abbc0c64e
powerpc/mm: Move register_process_table() out of ppc_md

We want to initialise register_process_table() before ppc_md is setup,
so that it can be called as part of MMU init (at least on Radix ATM).

That no longer works because probe_machine() requires that ppc_md be
empty before it's called, and we now do probe_machine() much later.

So make register_process_table a global for now. It will probably move
into a mmu_radix_ops struct at some point in the future.

This was broken by me when applying commit 1045b08c9964 "powerpc/mm:
Move hash table ops to a separate structure" due to conflicts with other
patches.

Fixes: 1045b08c9964 ("powerpc/mm: Move hash table ops to a separate structure")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/machdep.h
arch/powerpc/mm/hash_native_64.c
arch/powerpc/mm/pgtable-book3s64.c
arch/powerpc/mm/pgtable-radix.c