Commit 24f1ce80 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras

powerpc: Fix crash on CPU hotplug

early_init_mmu_secondary() is called at CPU hotplug time, so it
must be marked as __cpuinit, not __init.

Caused by 757c74d2 ("powerpc/mm: Introduce early_init_mmu() on 64-bit").
Tested-by: default avatarSachin Sant <sachinp@in.ibm.com>
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 5bd3ef84
...@@ -753,7 +753,7 @@ void __init early_init_mmu(void) ...@@ -753,7 +753,7 @@ void __init early_init_mmu(void)
} }
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
void __init early_init_mmu_secondary(void) void __cpuinit early_init_mmu_secondary(void)
{ {
/* Initialize hash table for that CPU */ /* Initialize hash table for that CPU */
if (!firmware_has_feature(FW_FEATURE_LPAR)) if (!firmware_has_feature(FW_FEATURE_LPAR))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment