-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move SMP setup to platsmp.c for consistency with other platforms. Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> Signed-off-by: Olof Johansson <olof@lixom.net>
- Loading branch information
Marc Gonzalez
authored and
Olof Johansson
committed
Jan 7, 2016
1 parent
765ff22
commit d6bd057
Showing
3 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
plus_sec := $(call as-instr,.arch_extension sec,+sec) | ||
AFLAGS_smc.o :=-Wa,-march=armv7-a$(plus_sec) | ||
AFLAGS_smc.o := -Wa,-march=armv7-a$(plus_sec) | ||
|
||
obj-y += setup.o smc.o | ||
obj-$(CONFIG_SMP) += platsmp.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <linux/init.h> | ||
#include <linux/smp.h> | ||
#include "smc.h" | ||
|
||
static int tango_boot_secondary(unsigned int cpu, struct task_struct *idle) | ||
{ | ||
tango_set_aux_boot_addr(virt_to_phys(secondary_startup)); | ||
tango_start_aux_core(cpu); | ||
return 0; | ||
} | ||
|
||
static struct smp_operations tango_smp_ops __initdata = { | ||
.smp_boot_secondary = tango_boot_secondary, | ||
}; | ||
|
||
CPU_METHOD_OF_DECLARE(tango4_smp, "sigma,tango4-smp", &tango_smp_ops); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters