Marc Gonzalez | d6bd057 | 2016-01-06 10:27:43 +0100 | [diff] [blame] | 1 | #include <linux/init.h> |
2 | #include <linux/smp.h> | ||||
3 | #include "smc.h" | ||||
4 | |||||
5 | static int tango_boot_secondary(unsigned int cpu, struct task_struct *idle) | ||||
6 | { | ||||
7 | tango_set_aux_boot_addr(virt_to_phys(secondary_startup)); | ||||
8 | tango_start_aux_core(cpu); | ||||
9 | return 0; | ||||
10 | } | ||||
11 | |||||
12 | static struct smp_operations tango_smp_ops __initdata = { | ||||
13 | .smp_boot_secondary = tango_boot_secondary, | ||||
14 | }; | ||||
15 | |||||
16 | CPU_METHOD_OF_DECLARE(tango4_smp, "sigma,tango4-smp", &tango_smp_ops); |