diff options
Diffstat (limited to 'arch/arm/mach-vexpress/platsmp.c')
-rw-r--r-- | arch/arm/mach-vexpress/platsmp.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/arm/mach-vexpress/platsmp.c b/arch/arm/mach-vexpress/platsmp.c index a1f3804fd5a5..83188cf1875d 100644 --- a/arch/arm/mach-vexpress/platsmp.c +++ b/arch/arm/mach-vexpress/platsmp.c | |||
@@ -19,48 +19,10 @@ | |||
19 | #include <asm/smp_scu.h> | 19 | #include <asm/smp_scu.h> |
20 | #include <asm/mach/map.h> | 20 | #include <asm/mach/map.h> |
21 | 21 | ||
22 | #include <mach/motherboard.h> | ||
23 | |||
24 | #include <plat/platsmp.h> | 22 | #include <plat/platsmp.h> |
25 | 23 | ||
26 | #include "core.h" | 24 | #include "core.h" |
27 | 25 | ||
28 | /* | ||
29 | * Initialise the CPU possible map early - this describes the CPUs | ||
30 | * which may be present or become present in the system. | ||
31 | */ | ||
32 | static void __init vexpress_smp_init_cpus(void) | ||
33 | { | ||
34 | ct_desc->init_cpu_map(); | ||
35 | } | ||
36 | |||
37 | static void __init vexpress_smp_prepare_cpus(unsigned int max_cpus) | ||
38 | { | ||
39 | /* | ||
40 | * Initialise the present map, which describes the set of CPUs | ||
41 | * actually populated at the present time. | ||
42 | */ | ||
43 | ct_desc->smp_enable(max_cpus); | ||
44 | |||
45 | /* | ||
46 | * Write the address of secondary startup into the | ||
47 | * system-wide flags register. The boot monitor waits | ||
48 | * until it receives a soft interrupt, and then the | ||
49 | * secondary CPU branches to this address. | ||
50 | */ | ||
51 | vexpress_flags_set(virt_to_phys(versatile_secondary_startup)); | ||
52 | } | ||
53 | |||
54 | struct smp_operations __initdata vexpress_smp_ops = { | ||
55 | .smp_init_cpus = vexpress_smp_init_cpus, | ||
56 | .smp_prepare_cpus = vexpress_smp_prepare_cpus, | ||
57 | .smp_secondary_init = versatile_secondary_init, | ||
58 | .smp_boot_secondary = versatile_boot_secondary, | ||
59 | #ifdef CONFIG_HOTPLUG_CPU | ||
60 | .cpu_die = vexpress_cpu_die, | ||
61 | #endif | ||
62 | }; | ||
63 | |||
64 | bool __init vexpress_smp_init_ops(void) | 26 | bool __init vexpress_smp_init_ops(void) |
65 | { | 27 | { |
66 | #ifdef CONFIG_MCPM | 28 | #ifdef CONFIG_MCPM |
@@ -79,8 +41,6 @@ bool __init vexpress_smp_init_ops(void) | |||
79 | return false; | 41 | return false; |
80 | } | 42 | } |
81 | 43 | ||
82 | #if defined(CONFIG_OF) | ||
83 | |||
84 | static const struct of_device_id vexpress_smp_dt_scu_match[] __initconst = { | 44 | static const struct of_device_id vexpress_smp_dt_scu_match[] __initconst = { |
85 | { .compatible = "arm,cortex-a5-scu", }, | 45 | { .compatible = "arm,cortex-a5-scu", }, |
86 | { .compatible = "arm,cortex-a9-scu", }, | 46 | { .compatible = "arm,cortex-a9-scu", }, |
@@ -112,5 +72,3 @@ struct smp_operations __initdata vexpress_smp_dt_ops = { | |||
112 | .cpu_die = vexpress_cpu_die, | 72 | .cpu_die = vexpress_cpu_die, |
113 | #endif | 73 | #endif |
114 | }; | 74 | }; |
115 | |||
116 | #endif | ||