diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/init.c | 18 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2/probe.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/probe.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh3/probe.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/smp-shx3.c | 6 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh5/probe.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/perf_event.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/smp.c | 8 | ||||
-rw-r--r-- | arch/sh/kernel/traps_32.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/traps_64.c | 2 | ||||
-rw-r--r-- | arch/sh/mm/tlb-sh5.c | 2 |
14 files changed, 28 insertions, 28 deletions
diff --git a/arch/sh/kernel/cpu/init.c b/arch/sh/kernel/cpu/init.c index 61a07dafcd46..ecf83cd158dc 100644 --- a/arch/sh/kernel/cpu/init.c +++ b/arch/sh/kernel/cpu/init.c | |||
@@ -43,9 +43,9 @@ | |||
43 | * peripherals (nofpu, nodsp, and so forth). | 43 | * peripherals (nofpu, nodsp, and so forth). |
44 | */ | 44 | */ |
45 | #define onchip_setup(x) \ | 45 | #define onchip_setup(x) \ |
46 | static int x##_disabled __cpuinitdata = !cpu_has_##x; \ | 46 | static int x##_disabled = !cpu_has_##x; \ |
47 | \ | 47 | \ |
48 | static int __cpuinit x##_setup(char *opts) \ | 48 | static int x##_setup(char *opts) \ |
49 | { \ | 49 | { \ |
50 | x##_disabled = 1; \ | 50 | x##_disabled = 1; \ |
51 | return 1; \ | 51 | return 1; \ |
@@ -59,7 +59,7 @@ onchip_setup(dsp); | |||
59 | #define CPUOPM 0xff2f0000 | 59 | #define CPUOPM 0xff2f0000 |
60 | #define CPUOPM_RABD (1 << 5) | 60 | #define CPUOPM_RABD (1 << 5) |
61 | 61 | ||
62 | static void __cpuinit speculative_execution_init(void) | 62 | static void speculative_execution_init(void) |
63 | { | 63 | { |
64 | /* Clear RABD */ | 64 | /* Clear RABD */ |
65 | __raw_writel(__raw_readl(CPUOPM) & ~CPUOPM_RABD, CPUOPM); | 65 | __raw_writel(__raw_readl(CPUOPM) & ~CPUOPM_RABD, CPUOPM); |
@@ -78,7 +78,7 @@ static void __cpuinit speculative_execution_init(void) | |||
78 | #define EXPMASK_BRDSSLP (1 << 1) | 78 | #define EXPMASK_BRDSSLP (1 << 1) |
79 | #define EXPMASK_MMCAW (1 << 4) | 79 | #define EXPMASK_MMCAW (1 << 4) |
80 | 80 | ||
81 | static void __cpuinit expmask_init(void) | 81 | static void expmask_init(void) |
82 | { | 82 | { |
83 | unsigned long expmask = __raw_readl(EXPMASK); | 83 | unsigned long expmask = __raw_readl(EXPMASK); |
84 | 84 | ||
@@ -217,7 +217,7 @@ static void detect_cache_shape(void) | |||
217 | l2_cache_shape = -1; /* No S-cache */ | 217 | l2_cache_shape = -1; /* No S-cache */ |
218 | } | 218 | } |
219 | 219 | ||
220 | static void __cpuinit fpu_init(void) | 220 | static void fpu_init(void) |
221 | { | 221 | { |
222 | /* Disable the FPU */ | 222 | /* Disable the FPU */ |
223 | if (fpu_disabled && (current_cpu_data.flags & CPU_HAS_FPU)) { | 223 | if (fpu_disabled && (current_cpu_data.flags & CPU_HAS_FPU)) { |
@@ -230,7 +230,7 @@ static void __cpuinit fpu_init(void) | |||
230 | } | 230 | } |
231 | 231 | ||
232 | #ifdef CONFIG_SH_DSP | 232 | #ifdef CONFIG_SH_DSP |
233 | static void __cpuinit release_dsp(void) | 233 | static void release_dsp(void) |
234 | { | 234 | { |
235 | unsigned long sr; | 235 | unsigned long sr; |
236 | 236 | ||
@@ -244,7 +244,7 @@ static void __cpuinit release_dsp(void) | |||
244 | ); | 244 | ); |
245 | } | 245 | } |
246 | 246 | ||
247 | static void __cpuinit dsp_init(void) | 247 | static void dsp_init(void) |
248 | { | 248 | { |
249 | unsigned long sr; | 249 | unsigned long sr; |
250 | 250 | ||
@@ -276,7 +276,7 @@ static void __cpuinit dsp_init(void) | |||
276 | release_dsp(); | 276 | release_dsp(); |
277 | } | 277 | } |
278 | #else | 278 | #else |
279 | static inline void __cpuinit dsp_init(void) { } | 279 | static inline void dsp_init(void) { } |
280 | #endif /* CONFIG_SH_DSP */ | 280 | #endif /* CONFIG_SH_DSP */ |
281 | 281 | ||
282 | /** | 282 | /** |
@@ -295,7 +295,7 @@ static inline void __cpuinit dsp_init(void) { } | |||
295 | * Each processor family is still responsible for doing its own probing | 295 | * Each processor family is still responsible for doing its own probing |
296 | * and cache configuration in cpu_probe(). | 296 | * and cache configuration in cpu_probe(). |
297 | */ | 297 | */ |
298 | asmlinkage void __cpuinit cpu_init(void) | 298 | asmlinkage void cpu_init(void) |
299 | { | 299 | { |
300 | current_thread_info()->cpu = hard_smp_processor_id(); | 300 | current_thread_info()->cpu = hard_smp_processor_id(); |
301 | 301 | ||
diff --git a/arch/sh/kernel/cpu/sh2/probe.c b/arch/sh/kernel/cpu/sh2/probe.c index bab8e75958ae..6c687ae812ef 100644 --- a/arch/sh/kernel/cpu/sh2/probe.c +++ b/arch/sh/kernel/cpu/sh2/probe.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
14 | #include <asm/cache.h> | 14 | #include <asm/cache.h> |
15 | 15 | ||
16 | void __cpuinit cpu_probe(void) | 16 | void cpu_probe(void) |
17 | { | 17 | { |
18 | #if defined(CONFIG_CPU_SUBTYPE_SH7619) | 18 | #if defined(CONFIG_CPU_SUBTYPE_SH7619) |
19 | boot_cpu_data.type = CPU_SH7619; | 19 | boot_cpu_data.type = CPU_SH7619; |
diff --git a/arch/sh/kernel/cpu/sh2a/probe.c b/arch/sh/kernel/cpu/sh2a/probe.c index 5170b6aa4129..3f87971082f1 100644 --- a/arch/sh/kernel/cpu/sh2a/probe.c +++ b/arch/sh/kernel/cpu/sh2a/probe.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
14 | #include <asm/cache.h> | 14 | #include <asm/cache.h> |
15 | 15 | ||
16 | void __cpuinit cpu_probe(void) | 16 | void cpu_probe(void) |
17 | { | 17 | { |
18 | boot_cpu_data.family = CPU_FAMILY_SH2A; | 18 | boot_cpu_data.family = CPU_FAMILY_SH2A; |
19 | 19 | ||
diff --git a/arch/sh/kernel/cpu/sh3/probe.c b/arch/sh/kernel/cpu/sh3/probe.c index bf23c322e164..426e1e1dcedc 100644 --- a/arch/sh/kernel/cpu/sh3/probe.c +++ b/arch/sh/kernel/cpu/sh3/probe.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/cache.h> | 16 | #include <asm/cache.h> |
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | 18 | ||
19 | void __cpuinit cpu_probe(void) | 19 | void cpu_probe(void) |
20 | { | 20 | { |
21 | unsigned long addr0, addr1, data0, data1, data2, data3; | 21 | unsigned long addr0, addr1, data0, data1, data2, data3; |
22 | 22 | ||
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 0fbbd50bc8ad..a521bcf50695 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <asm/processor.h> | 15 | #include <asm/processor.h> |
16 | #include <asm/cache.h> | 16 | #include <asm/cache.h> |
17 | 17 | ||
18 | void __cpuinit cpu_probe(void) | 18 | void cpu_probe(void) |
19 | { | 19 | { |
20 | unsigned long pvr, prr, cvr; | 20 | unsigned long pvr, prr, cvr; |
21 | unsigned long size; | 21 | unsigned long size; |
diff --git a/arch/sh/kernel/cpu/sh4a/smp-shx3.c b/arch/sh/kernel/cpu/sh4a/smp-shx3.c index 03f2b55757cf..4a298808789c 100644 --- a/arch/sh/kernel/cpu/sh4a/smp-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/smp-shx3.c | |||
@@ -124,7 +124,7 @@ static void shx3_update_boot_vector(unsigned int cpu) | |||
124 | __raw_writel(STBCR_RESET, STBCR_REG(cpu)); | 124 | __raw_writel(STBCR_RESET, STBCR_REG(cpu)); |
125 | } | 125 | } |
126 | 126 | ||
127 | static int __cpuinit | 127 | static int |
128 | shx3_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) | 128 | shx3_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) |
129 | { | 129 | { |
130 | unsigned int cpu = (unsigned int)hcpu; | 130 | unsigned int cpu = (unsigned int)hcpu; |
@@ -143,11 +143,11 @@ shx3_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
143 | return NOTIFY_OK; | 143 | return NOTIFY_OK; |
144 | } | 144 | } |
145 | 145 | ||
146 | static struct notifier_block __cpuinitdata shx3_cpu_notifier = { | 146 | static struct notifier_block shx3_cpu_notifier = { |
147 | .notifier_call = shx3_cpu_callback, | 147 | .notifier_call = shx3_cpu_callback, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | static int __cpuinit register_shx3_cpu_notifier(void) | 150 | static int register_shx3_cpu_notifier(void) |
151 | { | 151 | { |
152 | register_hotcpu_notifier(&shx3_cpu_notifier); | 152 | register_hotcpu_notifier(&shx3_cpu_notifier); |
153 | return 0; | 153 | return 0; |
diff --git a/arch/sh/kernel/cpu/sh5/probe.c b/arch/sh/kernel/cpu/sh5/probe.c index 9e882409e4e9..eca427c2f2f3 100644 --- a/arch/sh/kernel/cpu/sh5/probe.c +++ b/arch/sh/kernel/cpu/sh5/probe.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/cache.h> | 17 | #include <asm/cache.h> |
18 | #include <asm/tlb.h> | 18 | #include <asm/tlb.h> |
19 | 19 | ||
20 | void __cpuinit cpu_probe(void) | 20 | void cpu_probe(void) |
21 | { | 21 | { |
22 | unsigned long long cir; | 22 | unsigned long long cir; |
23 | 23 | ||
diff --git a/arch/sh/kernel/perf_event.c b/arch/sh/kernel/perf_event.c index 068b8a2759b5..b9cefebda55c 100644 --- a/arch/sh/kernel/perf_event.c +++ b/arch/sh/kernel/perf_event.c | |||
@@ -367,7 +367,7 @@ static void sh_pmu_setup(int cpu) | |||
367 | memset(cpuhw, 0, sizeof(struct cpu_hw_events)); | 367 | memset(cpuhw, 0, sizeof(struct cpu_hw_events)); |
368 | } | 368 | } |
369 | 369 | ||
370 | static int __cpuinit | 370 | static int |
371 | sh_pmu_notifier(struct notifier_block *self, unsigned long action, void *hcpu) | 371 | sh_pmu_notifier(struct notifier_block *self, unsigned long action, void *hcpu) |
372 | { | 372 | { |
373 | unsigned int cpu = (long)hcpu; | 373 | unsigned int cpu = (long)hcpu; |
@@ -384,7 +384,7 @@ sh_pmu_notifier(struct notifier_block *self, unsigned long action, void *hcpu) | |||
384 | return NOTIFY_OK; | 384 | return NOTIFY_OK; |
385 | } | 385 | } |
386 | 386 | ||
387 | int __cpuinit register_sh_pmu(struct sh_pmu *_pmu) | 387 | int register_sh_pmu(struct sh_pmu *_pmu) |
388 | { | 388 | { |
389 | if (sh_pmu) | 389 | if (sh_pmu) |
390 | return -EBUSY; | 390 | return -EBUSY; |
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 055d91b70305..53bc6c4c84ec 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c | |||
@@ -65,7 +65,7 @@ void arch_task_cache_init(void) | |||
65 | # define HAVE_SOFTFP 0 | 65 | # define HAVE_SOFTFP 0 |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | void __cpuinit init_thread_xstate(void) | 68 | void init_thread_xstate(void) |
69 | { | 69 | { |
70 | if (boot_cpu_data.flags & CPU_HAS_FPU) | 70 | if (boot_cpu_data.flags & CPU_HAS_FPU) |
71 | xstate_size = sizeof(struct sh_fpu_hard_struct); | 71 | xstate_size = sizeof(struct sh_fpu_hard_struct); |
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index ebe7a7d97215..1cf90e947dbf 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -172,7 +172,7 @@ disable: | |||
172 | #endif | 172 | #endif |
173 | } | 173 | } |
174 | 174 | ||
175 | void __cpuinit calibrate_delay(void) | 175 | void calibrate_delay(void) |
176 | { | 176 | { |
177 | struct clk *clk = clk_get(NULL, "cpu_clk"); | 177 | struct clk *clk = clk_get(NULL, "cpu_clk"); |
178 | 178 | ||
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index 45696451f0ea..86a7936a980b 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c | |||
@@ -37,7 +37,7 @@ struct plat_smp_ops *mp_ops = NULL; | |||
37 | /* State of each CPU */ | 37 | /* State of each CPU */ |
38 | DEFINE_PER_CPU(int, cpu_state) = { 0 }; | 38 | DEFINE_PER_CPU(int, cpu_state) = { 0 }; |
39 | 39 | ||
40 | void __cpuinit register_smp_ops(struct plat_smp_ops *ops) | 40 | void register_smp_ops(struct plat_smp_ops *ops) |
41 | { | 41 | { |
42 | if (mp_ops) | 42 | if (mp_ops) |
43 | printk(KERN_WARNING "Overriding previously set SMP ops\n"); | 43 | printk(KERN_WARNING "Overriding previously set SMP ops\n"); |
@@ -45,7 +45,7 @@ void __cpuinit register_smp_ops(struct plat_smp_ops *ops) | |||
45 | mp_ops = ops; | 45 | mp_ops = ops; |
46 | } | 46 | } |
47 | 47 | ||
48 | static inline void __cpuinit smp_store_cpu_info(unsigned int cpu) | 48 | static inline void smp_store_cpu_info(unsigned int cpu) |
49 | { | 49 | { |
50 | struct sh_cpuinfo *c = cpu_data + cpu; | 50 | struct sh_cpuinfo *c = cpu_data + cpu; |
51 | 51 | ||
@@ -174,7 +174,7 @@ void native_play_dead(void) | |||
174 | } | 174 | } |
175 | #endif | 175 | #endif |
176 | 176 | ||
177 | asmlinkage void __cpuinit start_secondary(void) | 177 | asmlinkage void start_secondary(void) |
178 | { | 178 | { |
179 | unsigned int cpu = smp_processor_id(); | 179 | unsigned int cpu = smp_processor_id(); |
180 | struct mm_struct *mm = &init_mm; | 180 | struct mm_struct *mm = &init_mm; |
@@ -215,7 +215,7 @@ extern struct { | |||
215 | void *thread_info; | 215 | void *thread_info; |
216 | } stack_start; | 216 | } stack_start; |
217 | 217 | ||
218 | int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tsk) | 218 | int __cpu_up(unsigned int cpu, struct task_struct *tsk) |
219 | { | 219 | { |
220 | unsigned long timeout; | 220 | unsigned long timeout; |
221 | 221 | ||
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index 5f513a64dedf..68e99f09171d 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c | |||
@@ -741,7 +741,7 @@ asmlinkage void do_exception_error(unsigned long r4, unsigned long r5, | |||
741 | die_if_kernel("exception", regs, ex); | 741 | die_if_kernel("exception", regs, ex); |
742 | } | 742 | } |
743 | 743 | ||
744 | void __cpuinit per_cpu_trap_init(void) | 744 | void per_cpu_trap_init(void) |
745 | { | 745 | { |
746 | extern void *vbr_base; | 746 | extern void *vbr_base; |
747 | 747 | ||
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c index f87d20da1791..112ea11c030d 100644 --- a/arch/sh/kernel/traps_64.c +++ b/arch/sh/kernel/traps_64.c | |||
@@ -810,7 +810,7 @@ asmlinkage void do_debug_interrupt(unsigned long code, struct pt_regs *regs) | |||
810 | poke_real_address_q(DM_EXP_CAUSE_PHY, 0x0); | 810 | poke_real_address_q(DM_EXP_CAUSE_PHY, 0x0); |
811 | } | 811 | } |
812 | 812 | ||
813 | void __cpuinit per_cpu_trap_init(void) | 813 | void per_cpu_trap_init(void) |
814 | { | 814 | { |
815 | /* Nothing to do for now, VBR initialization later. */ | 815 | /* Nothing to do for now, VBR initialization later. */ |
816 | } | 816 | } |
diff --git a/arch/sh/mm/tlb-sh5.c b/arch/sh/mm/tlb-sh5.c index ff1c40a31cbc..e4bb2a8e0a69 100644 --- a/arch/sh/mm/tlb-sh5.c +++ b/arch/sh/mm/tlb-sh5.c | |||
@@ -17,7 +17,7 @@ | |||
17 | /** | 17 | /** |
18 | * sh64_tlb_init - Perform initial setup for the DTLB and ITLB. | 18 | * sh64_tlb_init - Perform initial setup for the DTLB and ITLB. |
19 | */ | 19 | */ |
20 | int __cpuinit sh64_tlb_init(void) | 20 | int sh64_tlb_init(void) |
21 | { | 21 | { |
22 | /* Assign some sane DTLB defaults */ | 22 | /* Assign some sane DTLB defaults */ |
23 | cpu_data->dtlb.entries = 64; | 23 | cpu_data->dtlb.entries = 64; |