Skip to content

Commit

Permalink
powerpc: Fix crash on CPU hotplug
Browse files Browse the repository at this point in the history
early_init_mmu_secondary() is called at CPU hotplug time, so it
must be marked as __cpuinit, not __init.

Caused by 757c74d ("powerpc/mm: Introduce early_init_mmu() on 64-bit").

Tested-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Apr 22, 2009
1 parent 5bd3ef8 commit 24f1ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/hash_utils_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void __init early_init_mmu(void)
}

#ifdef CONFIG_SMP
void __init early_init_mmu_secondary(void)
void __cpuinit early_init_mmu_secondary(void)
{
/* Initialize hash table for that CPU */
if (!firmware_has_feature(FW_FEATURE_LPAR))
Expand Down

0 comments on commit 24f1ce8

Please sign in to comment.