aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-03 10:00:49 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 10:09:09 -0500
commit2c0136dba4e43b0916ccc9ecc7f11e6d6b73f046 (patch)
tree11670406e209607ada215377a95ad73de4ca6e09 /arch/arm
parent05c74a6cbcfb416286a947668ba32f63d99fe74a (diff)
ARM: SMP: consolidate trace_hardirqs_off() into common SMP code
All platforms call trace_hardirqs_off() in their secondary startup code, so move this into the core SMP code - it doesn't need to be in the per-platform code. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/smp.c1
-rw-r--r--arch/arm/mach-omap2/omap-smp.c2
-rw-r--r--arch/arm/mach-realview/platsmp.c2
-rw-r--r--arch/arm/mach-s5pv310/platsmp.c2
-rw-r--r--arch/arm/mach-tegra/platsmp.c2
-rw-r--r--arch/arm/mach-ux500/platsmp.c2
-rw-r--r--arch/arm/mach-vexpress/platsmp.c2
7 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index c66f2d3f65d3..a30c4094db3a 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -317,6 +317,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
317 317
318 cpu_init(); 318 cpu_init();
319 preempt_disable(); 319 preempt_disable();
320 trace_hardirqs_off();
320 321
321 /* 322 /*
322 * Give the platform a chance to do its own initialisation. 323 * Give the platform a chance to do its own initialisation.
diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c
index 3c3d6796c97c..9fed631ba046 100644
--- a/arch/arm/mach-omap2/omap-smp.c
+++ b/arch/arm/mach-omap2/omap-smp.c
@@ -32,8 +32,6 @@ static DEFINE_SPINLOCK(boot_lock);
32 32
33void __cpuinit platform_secondary_init(unsigned int cpu) 33void __cpuinit platform_secondary_init(unsigned int cpu)
34{ 34{
35 trace_hardirqs_off();
36
37 /* 35 /*
38 * If any interrupts are already enabled for the primary 36 * If any interrupts are already enabled for the primary
39 * core (e.g. timer irq), then they will not have been enabled 37 * core (e.g. timer irq), then they will not have been enabled
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c
index 380562cd6580..226c63102a00 100644
--- a/arch/arm/mach-realview/platsmp.c
+++ b/arch/arm/mach-realview/platsmp.c
@@ -53,8 +53,6 @@ static DEFINE_SPINLOCK(boot_lock);
53 53
54void __cpuinit platform_secondary_init(unsigned int cpu) 54void __cpuinit platform_secondary_init(unsigned int cpu)
55{ 55{
56 trace_hardirqs_off();
57
58 /* 56 /*
59 * if any interrupts are already enabled for the primary 57 * if any interrupts are already enabled for the primary
60 * core (e.g. timer irq), then they will not have been enabled 58 * core (e.g. timer irq), then they will not have been enabled
diff --git a/arch/arm/mach-s5pv310/platsmp.c b/arch/arm/mach-s5pv310/platsmp.c
index 51c44d4c9890..18aaf5f54033 100644
--- a/arch/arm/mach-s5pv310/platsmp.c
+++ b/arch/arm/mach-s5pv310/platsmp.c
@@ -46,8 +46,6 @@ static DEFINE_SPINLOCK(boot_lock);
46 46
47void __cpuinit platform_secondary_init(unsigned int cpu) 47void __cpuinit platform_secondary_init(unsigned int cpu)
48{ 48{
49 trace_hardirqs_off();
50
51 /* 49 /*
52 * if any interrupts are already enabled for the primary 50 * if any interrupts are already enabled for the primary
53 * core (e.g. timer irq), then they will not have been enabled 51 * core (e.g. timer irq), then they will not have been enabled
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c
index b66a0c2d990d..c729cd72cc3b 100644
--- a/arch/arm/mach-tegra/platsmp.c
+++ b/arch/arm/mach-tegra/platsmp.c
@@ -40,8 +40,6 @@ static void __iomem *scu_base = IO_ADDRESS(TEGRA_ARM_PERIF_BASE);
40 40
41void __cpuinit platform_secondary_init(unsigned int cpu) 41void __cpuinit platform_secondary_init(unsigned int cpu)
42{ 42{
43 trace_hardirqs_off();
44
45 /* 43 /*
46 * if any interrupts are already enabled for the primary 44 * if any interrupts are already enabled for the primary
47 * core (e.g. timer irq), then they will not have been enabled 45 * core (e.g. timer irq), then they will not have been enabled
diff --git a/arch/arm/mach-ux500/platsmp.c b/arch/arm/mach-ux500/platsmp.c
index 458a288981cb..ddedbc80c41f 100644
--- a/arch/arm/mach-ux500/platsmp.c
+++ b/arch/arm/mach-ux500/platsmp.c
@@ -31,8 +31,6 @@ static DEFINE_SPINLOCK(boot_lock);
31 31
32void __cpuinit platform_secondary_init(unsigned int cpu) 32void __cpuinit platform_secondary_init(unsigned int cpu)
33{ 33{
34 trace_hardirqs_off();
35
36 /* 34 /*
37 * if any interrupts are already enabled for the primary 35 * if any interrupts are already enabled for the primary
38 * core (e.g. timer irq), then they will not have been enabled 36 * core (e.g. timer irq), then they will not have been enabled
diff --git a/arch/arm/mach-vexpress/platsmp.c b/arch/arm/mach-vexpress/platsmp.c
index a0341d14ff2a..d7e0cb994e9d 100644
--- a/arch/arm/mach-vexpress/platsmp.c
+++ b/arch/arm/mach-vexpress/platsmp.c
@@ -43,8 +43,6 @@ static DEFINE_SPINLOCK(boot_lock);
43 43
44void __cpuinit platform_secondary_init(unsigned int cpu) 44void __cpuinit platform_secondary_init(unsigned int cpu)
45{ 45{
46 trace_hardirqs_off();
47
48 /* 46 /*
49 * if any interrupts are already enabled for the primary 47 * if any interrupts are already enabled for the primary
50 * core (e.g. timer irq), then they will not have been enabled 48 * core (e.g. timer irq), then they will not have been enabled