File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 15
15
#include <linux/init.h>
16
16
#include <linux/io.h>
17
17
#include <asm/cacheflush.h>
18
+ #include <asm/smp_plat.h>
18
19
#include <asm/smp_scu.h>
19
20
#include <linux/irqchip/arm-gic.h>
20
21
#include "common.h"
@@ -30,6 +31,7 @@ int zynq_cpun_start(u32 address, int cpu)
30
31
{
31
32
u32 trampoline_code_size = & zynq_secondary_trampoline_end -
32
33
& zynq_secondary_trampoline ;
34
+ u32 phy_cpuid = cpu_logical_map (cpu );
33
35
34
36
/* MS: Expectation that SLCR are directly map and accessible */
35
37
/* Not possible to jump to non aligned address */
@@ -39,7 +41,7 @@ int zynq_cpun_start(u32 address, int cpu)
39
41
u32 trampoline_size = & zynq_secondary_trampoline_jump -
40
42
& zynq_secondary_trampoline ;
41
43
42
- zynq_slcr_cpu_stop (cpu );
44
+ zynq_slcr_cpu_stop (phy_cpuid );
43
45
if (address ) {
44
46
if (__pa (PAGE_OFFSET )) {
45
47
zero = ioremap (0 , trampoline_code_size );
@@ -68,7 +70,7 @@ int zynq_cpun_start(u32 address, int cpu)
68
70
if (__pa (PAGE_OFFSET ))
69
71
iounmap (zero );
70
72
}
71
- zynq_slcr_cpu_start (cpu );
73
+ zynq_slcr_cpu_start (phy_cpuid );
72
74
73
75
return 0 ;
74
76
}
You can’t perform that action at this time.
0 commit comments