aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-01-17 01:46:06 -0500
committerOlof Johansson <olof@lixom.net>2012-01-17 01:46:06 -0500
commit8b0f6d12de91345190f234edba781b2fd03257b6 (patch)
tree4b6015433a0ffe5fc7ff9115014e3da580581f4b /arch
parent916e5ebb9f5a154bb845d555a1a84ef48411b73a (diff)
parentefb963dcd9854c70667cdba9b5854b7290f1cefd (diff)
Merge branch 'fixes-for-arm-soc' of git://sources.calxeda.com/kernel/linux into fixes
* 'fixes-for-arm-soc' of git://sources.calxeda.com/kernel/linux: ARM: make BSYM macro assembly only ARM: highbank: remove incorrect BSYM usage ARM: imx: remove incorrect BSYM usage ARM: exynos: remove incorrect BSYM usage ARM: ux500: add missing ENDPROC to headsmp.S ARM: msm: Add missing ENDPROC to headsmp.S ARM: versatile: Add missing ENDPROC to headsmp.S
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/unified.h4
-rw-r--r--arch/arm/mach-exynos/headsmp.S2
-rw-r--r--arch/arm/mach-exynos/platsmp.c5
-rw-r--r--arch/arm/mach-highbank/highbank.c3
-rw-r--r--arch/arm/mach-imx/src.c3
-rw-r--r--arch/arm/mach-msm/headsmp.S1
-rw-r--r--arch/arm/mach-realview/platsmp.c3
-rw-r--r--arch/arm/mach-ux500/headsmp.S2
-rw-r--r--arch/arm/mach-vexpress/platsmp.c4
-rw-r--r--arch/arm/plat-versatile/headsmp.S1
10 files changed, 14 insertions, 14 deletions
diff --git a/arch/arm/include/asm/unified.h b/arch/arm/include/asm/unified.h
index bc631161e9c6..f5989f46b4d2 100644
--- a/arch/arm/include/asm/unified.h
+++ b/arch/arm/include/asm/unified.h
@@ -37,8 +37,8 @@
37#define THUMB(x...) x 37#define THUMB(x...) x
38#ifdef __ASSEMBLY__ 38#ifdef __ASSEMBLY__
39#define W(instr) instr.w 39#define W(instr) instr.w
40#endif
41#define BSYM(sym) sym + 1 40#define BSYM(sym) sym + 1
41#endif
42 42
43#else /* !CONFIG_THUMB2_KERNEL */ 43#else /* !CONFIG_THUMB2_KERNEL */
44 44
@@ -49,8 +49,8 @@
49#define THUMB(x...) 49#define THUMB(x...)
50#ifdef __ASSEMBLY__ 50#ifdef __ASSEMBLY__
51#define W(instr) instr 51#define W(instr) instr
52#endif
53#define BSYM(sym) sym 52#define BSYM(sym) sym
53#endif
54 54
55#endif /* CONFIG_THUMB2_KERNEL */ 55#endif /* CONFIG_THUMB2_KERNEL */
56 56
diff --git a/arch/arm/mach-exynos/headsmp.S b/arch/arm/mach-exynos/headsmp.S
index 3cdeb3647542..5364d4bfa8bc 100644
--- a/arch/arm/mach-exynos/headsmp.S
+++ b/arch/arm/mach-exynos/headsmp.S
@@ -36,6 +36,8 @@ pen: ldr r7, [r6]
36 * should now contain the SVC stack for this core 36 * should now contain the SVC stack for this core
37 */ 37 */
38 b secondary_startup 38 b secondary_startup
39ENDPROC(exynos4_secondary_startup)
39 40
41 .align 2
401: .long . 421: .long .
41 .long pen_release 43 .long pen_release
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c
index 60bc45e3e709..683aec786b78 100644
--- a/arch/arm/mach-exynos/platsmp.c
+++ b/arch/arm/mach-exynos/platsmp.c
@@ -24,7 +24,6 @@
24#include <asm/cacheflush.h> 24#include <asm/cacheflush.h>
25#include <asm/hardware/gic.h> 25#include <asm/hardware/gic.h>
26#include <asm/smp_scu.h> 26#include <asm/smp_scu.h>
27#include <asm/unified.h>
28 27
29#include <mach/hardware.h> 28#include <mach/hardware.h>
30#include <mach/regs-clock.h> 29#include <mach/regs-clock.h>
@@ -137,7 +136,7 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
137 while (time_before(jiffies, timeout)) { 136 while (time_before(jiffies, timeout)) {
138 smp_rmb(); 137 smp_rmb();
139 138
140 __raw_writel(BSYM(virt_to_phys(exynos4_secondary_startup)), 139 __raw_writel(virt_to_phys(exynos4_secondary_startup),
141 CPU1_BOOT_REG); 140 CPU1_BOOT_REG);
142 gic_raise_softirq(cpumask_of(cpu), 1); 141 gic_raise_softirq(cpumask_of(cpu), 1);
143 142
@@ -192,6 +191,6 @@ void __init platform_smp_prepare_cpus(unsigned int max_cpus)
192 * until it receives a soft interrupt, and then the 191 * until it receives a soft interrupt, and then the
193 * secondary CPU branches to this address. 192 * secondary CPU branches to this address.
194 */ 193 */
195 __raw_writel(BSYM(virt_to_phys(exynos4_secondary_startup)), 194 __raw_writel(virt_to_phys(exynos4_secondary_startup),
196 CPU1_BOOT_REG); 195 CPU1_BOOT_REG);
197} 196}
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 804c4a55f803..7afbe1e55beb 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -25,7 +25,6 @@
25#include <linux/smp.h> 25#include <linux/smp.h>
26 26
27#include <asm/cacheflush.h> 27#include <asm/cacheflush.h>
28#include <asm/unified.h>
29#include <asm/smp_scu.h> 28#include <asm/smp_scu.h>
30#include <asm/hardware/arm_timer.h> 29#include <asm/hardware/arm_timer.h>
31#include <asm/hardware/timer-sp.h> 30#include <asm/hardware/timer-sp.h>
@@ -76,7 +75,7 @@ void highbank_set_cpu_jump(int cpu, void *jump_addr)
76#ifdef CONFIG_SMP 75#ifdef CONFIG_SMP
77 cpu = cpu_logical_map(cpu); 76 cpu = cpu_logical_map(cpu);
78#endif 77#endif
79 writel(BSYM(virt_to_phys(jump_addr)), HB_JUMP_TABLE_VIRT(cpu)); 78 writel(virt_to_phys(jump_addr), HB_JUMP_TABLE_VIRT(cpu));
80 __cpuc_flush_dcache_area(HB_JUMP_TABLE_VIRT(cpu), 16); 79 __cpuc_flush_dcache_area(HB_JUMP_TABLE_VIRT(cpu), 16);
81 outer_clean_range(HB_JUMP_TABLE_PHYS(cpu), 80 outer_clean_range(HB_JUMP_TABLE_PHYS(cpu),
82 HB_JUMP_TABLE_PHYS(cpu) + 15); 81 HB_JUMP_TABLE_PHYS(cpu) + 15);
diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 4bde04f99e38..29bd1243781e 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -15,7 +15,6 @@
15#include <linux/of.h> 15#include <linux/of.h>
16#include <linux/of_address.h> 16#include <linux/of_address.h>
17#include <linux/smp.h> 17#include <linux/smp.h>
18#include <asm/unified.h>
19 18
20#define SRC_SCR 0x000 19#define SRC_SCR 0x000
21#define SRC_GPR1 0x020 20#define SRC_GPR1 0x020
@@ -43,7 +42,7 @@ void imx_enable_cpu(int cpu, bool enable)
43void imx_set_cpu_jump(int cpu, void *jump_addr) 42void imx_set_cpu_jump(int cpu, void *jump_addr)
44{ 43{
45 cpu = cpu_logical_map(cpu); 44 cpu = cpu_logical_map(cpu);
46 writel_relaxed(BSYM(virt_to_phys(jump_addr)), 45 writel_relaxed(virt_to_phys(jump_addr),
47 src_base + SRC_GPR1 + cpu * 8); 46 src_base + SRC_GPR1 + cpu * 8);
48} 47}
49 48
diff --git a/arch/arm/mach-msm/headsmp.S b/arch/arm/mach-msm/headsmp.S
index 0c631a9f8647..bcd5af223dea 100644
--- a/arch/arm/mach-msm/headsmp.S
+++ b/arch/arm/mach-msm/headsmp.S
@@ -34,6 +34,7 @@ pen: ldr r7, [r6]
34 * should now contain the SVC stack for this core 34 * should now contain the SVC stack for this core
35 */ 35 */
36 b secondary_startup 36 b secondary_startup
37ENDPROC(msm_secondary_startup)
37 38
38 .align 39 .align
391: .long . 401: .long .
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c
index e83c654a58d0..17c878ddbc70 100644
--- a/arch/arm/mach-realview/platsmp.c
+++ b/arch/arm/mach-realview/platsmp.c
@@ -17,7 +17,6 @@
17#include <asm/hardware/gic.h> 17#include <asm/hardware/gic.h>
18#include <asm/mach-types.h> 18#include <asm/mach-types.h>
19#include <asm/smp_scu.h> 19#include <asm/smp_scu.h>
20#include <asm/unified.h>
21 20
22#include <mach/board-eb.h> 21#include <mach/board-eb.h>
23#include <mach/board-pb11mp.h> 22#include <mach/board-pb11mp.h>
@@ -75,6 +74,6 @@ void __init platform_smp_prepare_cpus(unsigned int max_cpus)
75 * until it receives a soft interrupt, and then the 74 * until it receives a soft interrupt, and then the
76 * secondary CPU branches to this address. 75 * secondary CPU branches to this address.
77 */ 76 */
78 __raw_writel(BSYM(virt_to_phys(versatile_secondary_startup)), 77 __raw_writel(virt_to_phys(versatile_secondary_startup),
79 __io_address(REALVIEW_SYS_FLAGSSET)); 78 __io_address(REALVIEW_SYS_FLAGSSET));
80} 79}
diff --git a/arch/arm/mach-ux500/headsmp.S b/arch/arm/mach-ux500/headsmp.S
index 64fa451edcfd..08da5589bcd8 100644
--- a/arch/arm/mach-ux500/headsmp.S
+++ b/arch/arm/mach-ux500/headsmp.S
@@ -32,6 +32,8 @@ pen: ldr r7, [r6]
32 * should now contain the SVC stack for this core 32 * should now contain the SVC stack for this core
33 */ 33 */
34 b secondary_startup 34 b secondary_startup
35ENDPROC(u8500_secondary_startup)
35 36
37 .align 2
361: .long . 381: .long .
37 .long pen_release 39 .long pen_release
diff --git a/arch/arm/mach-vexpress/platsmp.c b/arch/arm/mach-vexpress/platsmp.c
index 2b5f7ac001a3..124ffb169093 100644
--- a/arch/arm/mach-vexpress/platsmp.c
+++ b/arch/arm/mach-vexpress/platsmp.c
@@ -13,8 +13,6 @@
13#include <linux/smp.h> 13#include <linux/smp.h>
14#include <linux/io.h> 14#include <linux/io.h>
15 15
16#include <asm/unified.h>
17
18#include <mach/motherboard.h> 16#include <mach/motherboard.h>
19#define V2M_PA_CS7 0x10000000 17#define V2M_PA_CS7 0x10000000
20 18
@@ -46,6 +44,6 @@ void __init platform_smp_prepare_cpus(unsigned int max_cpus)
46 * secondary CPU branches to this address. 44 * secondary CPU branches to this address.
47 */ 45 */
48 writel(~0, MMIO_P2V(V2M_SYS_FLAGSCLR)); 46 writel(~0, MMIO_P2V(V2M_SYS_FLAGSCLR));
49 writel(BSYM(virt_to_phys(versatile_secondary_startup)), 47 writel(virt_to_phys(versatile_secondary_startup),
50 MMIO_P2V(V2M_SYS_FLAGSSET)); 48 MMIO_P2V(V2M_SYS_FLAGSSET));
51} 49}
diff --git a/arch/arm/plat-versatile/headsmp.S b/arch/arm/plat-versatile/headsmp.S
index d397a1fb2f54..dd703ef09b8d 100644
--- a/arch/arm/plat-versatile/headsmp.S
+++ b/arch/arm/plat-versatile/headsmp.S
@@ -38,3 +38,4 @@ pen: ldr r7, [r6]
38 .align 38 .align
391: .long . 391: .long .
40 .long pen_release 40 .long pen_release
41ENDPROC(versatile_secondary_startup)