Skip to content

Commit

Permalink
ARM: mvebu: initialize mvebu-soc-id earlier
Browse files Browse the repository at this point in the history
Currently, the mvebu-soc-id logic is initialized through a
core_initcall(). However, we will soon need to know the SoC revision
before booting secondary CPUs, because a workaround affects Armada 375
Z1 steppings, but should not be applied on Armada 375 A0 steppings.

Unfortunately, core_initcall() are called way too late compared to the
SMP initialization. Therefore, the mvebu-soc-id initialization is move
to an early_initcall(), which is called before the SMP initialization.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1399302326-6917-3-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Thomas Petazzoni authored and Jason Cooper committed May 8, 2014
1 parent c1a01a0 commit 73c3c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-mvebu/mvebu-soc-id.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int __init mvebu_soc_id_init(void)

return ret;
}
core_initcall(mvebu_soc_id_init);
early_initcall(mvebu_soc_id_init);

static int __init mvebu_soc_device(void)
{
Expand Down

0 comments on commit 73c3c79

Please sign in to comment.