[POWERPC] powerpc: Initialise ppc_md htab pointers earlier
Initialise the ppc_md htab callbacks earlier, in the probe routines. This allows us to call htab_finish_init() from htab_initialize(), and makes it private to hash_utils_64.c. Move htab_finish_init() and make_bl() above htab_initialize() to avoid forward declarations. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
7a4571ae55
commit
7d0daae4ae
@@ -520,7 +520,7 @@ static inline int tlb_batching_enabled(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
void hpte_init_native(void)
|
||||
void __init hpte_init_native(void)
|
||||
{
|
||||
ppc_md.hpte_invalidate = native_hpte_invalidate;
|
||||
ppc_md.hpte_updatepp = native_hpte_updatepp;
|
||||
@@ -530,5 +530,4 @@ void hpte_init_native(void)
|
||||
ppc_md.hpte_clear_all = native_hpte_clear;
|
||||
if (tlb_batching_enabled())
|
||||
ppc_md.flush_hash_range = native_flush_hash_range;
|
||||
htab_finish_init();
|
||||
}
|
||||
|
Reference in New Issue
Block a user