diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-07-17 16:35:41 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-17 16:35:41 -0400 |
commit | bd6f68af298cab4e059f8489b56e46ae36243fcc (patch) | |
tree | 4f819ea9083fa9dc8260608c1984b050cd3b2bac /arch | |
parent | 772a9e631ccad0423ed6d08acb3a4b1084ae2613 (diff) |
[PATCH] ARM SMP: Mark CPU init functions/data with __cpuinit/...data
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/smp.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-integrator/platsmp.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 7ae45c3fc834..295e0a8379cf 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -78,7 +78,7 @@ struct smp_call_struct { | |||
78 | static struct smp_call_struct * volatile smp_call_function_data; | 78 | static struct smp_call_struct * volatile smp_call_function_data; |
79 | static DEFINE_SPINLOCK(smp_call_function_lock); | 79 | static DEFINE_SPINLOCK(smp_call_function_lock); |
80 | 80 | ||
81 | int __init __cpu_up(unsigned int cpu) | 81 | int __cpuinit __cpu_up(unsigned int cpu) |
82 | { | 82 | { |
83 | struct task_struct *idle; | 83 | struct task_struct *idle; |
84 | pgd_t *pgd; | 84 | pgd_t *pgd; |
@@ -159,7 +159,7 @@ int __init __cpu_up(unsigned int cpu) | |||
159 | * This is the secondary CPU boot entry. We're using this CPUs | 159 | * This is the secondary CPU boot entry. We're using this CPUs |
160 | * idle thread stack, but a set of temporary page tables. | 160 | * idle thread stack, but a set of temporary page tables. |
161 | */ | 161 | */ |
162 | asmlinkage void __init secondary_start_kernel(void) | 162 | asmlinkage void __cpuinit secondary_start_kernel(void) |
163 | { | 163 | { |
164 | struct mm_struct *mm = &init_mm; | 164 | struct mm_struct *mm = &init_mm; |
165 | unsigned int cpu = smp_processor_id(); | 165 | unsigned int cpu = smp_processor_id(); |
@@ -209,7 +209,7 @@ asmlinkage void __init secondary_start_kernel(void) | |||
209 | * Called by both boot and secondaries to move global data into | 209 | * Called by both boot and secondaries to move global data into |
210 | * per-processor storage. | 210 | * per-processor storage. |
211 | */ | 211 | */ |
212 | void __init smp_store_cpu_info(unsigned int cpuid) | 212 | void __cpuinit smp_store_cpu_info(unsigned int cpuid) |
213 | { | 213 | { |
214 | struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpuid); | 214 | struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpuid); |
215 | 215 | ||
diff --git a/arch/arm/mach-integrator/platsmp.c b/arch/arm/mach-integrator/platsmp.c index 2ba025777098..c8eef97d0c16 100644 --- a/arch/arm/mach-integrator/platsmp.c +++ b/arch/arm/mach-integrator/platsmp.c | |||
@@ -32,7 +32,7 @@ unsigned long __initdata phys_pen_release = 0; | |||
32 | 32 | ||
33 | static DEFINE_SPINLOCK(boot_lock); | 33 | static DEFINE_SPINLOCK(boot_lock); |
34 | 34 | ||
35 | void __init platform_secondary_init(unsigned int cpu) | 35 | void __cpuinit platform_secondary_init(unsigned int cpu) |
36 | { | 36 | { |
37 | /* | 37 | /* |
38 | * the primary core may have used a "cross call" soft interrupt | 38 | * the primary core may have used a "cross call" soft interrupt |
@@ -61,7 +61,7 @@ void __init platform_secondary_init(unsigned int cpu) | |||
61 | spin_unlock(&boot_lock); | 61 | spin_unlock(&boot_lock); |
62 | } | 62 | } |
63 | 63 | ||
64 | int __init boot_secondary(unsigned int cpu, struct task_struct *idle) | 64 | int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle) |
65 | { | 65 | { |
66 | unsigned long timeout; | 66 | unsigned long timeout; |
67 | 67 | ||