diff options
| -rw-r--r-- | arch/arm/mach-shmobile/common.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/headsmp.S | 8 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/platsmp-apmu.c | 1 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/platsmp-scu.c | 1 |
4 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-shmobile/common.h b/arch/arm/mach-shmobile/common.h index 9cb11215ceba..b3a4ed5289ec 100644 --- a/arch/arm/mach-shmobile/common.h +++ b/arch/arm/mach-shmobile/common.h | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | extern void shmobile_init_delay(void); | 4 | extern void shmobile_init_delay(void); |
| 5 | extern void shmobile_boot_vector(void); | 5 | extern void shmobile_boot_vector(void); |
| 6 | extern unsigned long shmobile_boot_fn; | 6 | extern unsigned long shmobile_boot_fn; |
| 7 | extern unsigned long shmobile_boot_arg; | ||
| 8 | extern unsigned long shmobile_boot_size; | 7 | extern unsigned long shmobile_boot_size; |
| 9 | extern void shmobile_smp_boot(void); | 8 | extern void shmobile_smp_boot(void); |
| 10 | extern void shmobile_smp_sleep(void); | 9 | extern void shmobile_smp_sleep(void); |
diff --git a/arch/arm/mach-shmobile/headsmp.S b/arch/arm/mach-shmobile/headsmp.S index 94d86ed16414..32e0bf6e3ccb 100644 --- a/arch/arm/mach-shmobile/headsmp.S +++ b/arch/arm/mach-shmobile/headsmp.S | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | .arm | 24 | .arm |
| 25 | .align 12 | 25 | .align 12 |
| 26 | ENTRY(shmobile_boot_vector) | 26 | ENTRY(shmobile_boot_vector) |
| 27 | ldr r0, 2f | ||
| 28 | ldr r1, 1f | 27 | ldr r1, 1f |
| 29 | bx r1 | 28 | bx r1 |
| 30 | 29 | ||
| @@ -34,9 +33,6 @@ ENDPROC(shmobile_boot_vector) | |||
| 34 | .globl shmobile_boot_fn | 33 | .globl shmobile_boot_fn |
| 35 | shmobile_boot_fn: | 34 | shmobile_boot_fn: |
| 36 | 1: .space 4 | 35 | 1: .space 4 |
| 37 | .globl shmobile_boot_arg | ||
| 38 | shmobile_boot_arg: | ||
| 39 | 2: .space 4 | ||
| 40 | .globl shmobile_boot_size | 36 | .globl shmobile_boot_size |
| 41 | shmobile_boot_size: | 37 | shmobile_boot_size: |
| 42 | .long . - shmobile_boot_vector | 38 | .long . - shmobile_boot_vector |
| @@ -46,9 +42,9 @@ shmobile_boot_size: | |||
| 46 | */ | 42 | */ |
| 47 | 43 | ||
| 48 | ENTRY(shmobile_smp_boot) | 44 | ENTRY(shmobile_smp_boot) |
| 49 | @ r0 = MPIDR_HWID_BITMASK | ||
| 50 | mrc p15, 0, r1, c0, c0, 5 @ r1 = MPIDR | 45 | mrc p15, 0, r1, c0, c0, 5 @ r1 = MPIDR |
| 51 | and r0, r1, r0 @ r0 = cpu_logical_map() value | 46 | and r0, r1, #0xffffff @ MPIDR_HWID_BITMASK |
| 47 | @ r0 = cpu_logical_map() value | ||
| 52 | mov r1, #0 @ r1 = CPU index | 48 | mov r1, #0 @ r1 = CPU index |
| 53 | adr r2, 1f | 49 | adr r2, 1f |
| 54 | ldmia r2, {r5, r6, r7} | 50 | ldmia r2, {r5, r6, r7} |
diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c index 911884f7e28b..aba75c89f9c1 100644 --- a/arch/arm/mach-shmobile/platsmp-apmu.c +++ b/arch/arm/mach-shmobile/platsmp-apmu.c | |||
| @@ -123,7 +123,6 @@ void __init shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus, | |||
| 123 | { | 123 | { |
| 124 | /* install boot code shared by all CPUs */ | 124 | /* install boot code shared by all CPUs */ |
| 125 | shmobile_boot_fn = virt_to_phys(shmobile_smp_boot); | 125 | shmobile_boot_fn = virt_to_phys(shmobile_smp_boot); |
| 126 | shmobile_boot_arg = MPIDR_HWID_BITMASK; | ||
| 127 | 126 | ||
| 128 | /* perform per-cpu setup */ | 127 | /* perform per-cpu setup */ |
| 129 | apmu_parse_cfg(apmu_init_cpu, apmu_config, num); | 128 | apmu_parse_cfg(apmu_init_cpu, apmu_config, num); |
diff --git a/arch/arm/mach-shmobile/platsmp-scu.c b/arch/arm/mach-shmobile/platsmp-scu.c index f2198c9c7435..081a097c9219 100644 --- a/arch/arm/mach-shmobile/platsmp-scu.c +++ b/arch/arm/mach-shmobile/platsmp-scu.c | |||
| @@ -44,7 +44,6 @@ void __init shmobile_smp_scu_prepare_cpus(unsigned int max_cpus) | |||
| 44 | { | 44 | { |
| 45 | /* install boot code shared by all CPUs */ | 45 | /* install boot code shared by all CPUs */ |
| 46 | shmobile_boot_fn = virt_to_phys(shmobile_smp_boot); | 46 | shmobile_boot_fn = virt_to_phys(shmobile_smp_boot); |
| 47 | shmobile_boot_arg = MPIDR_HWID_BITMASK; | ||
| 48 | 47 | ||
| 49 | /* enable SCU and cache coherency on booting CPU */ | 48 | /* enable SCU and cache coherency on booting CPU */ |
| 50 | scu_enable(shmobile_scu_base); | 49 | scu_enable(shmobile_scu_base); |
