diff options
| author | Takashi Iwai <tiwai@suse.de> | 2013-07-24 05:42:34 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2013-07-24 05:42:34 -0400 |
| commit | 43cbd286fbba4bfb0c2ef05dc62522dfd5a2c000 (patch) | |
| tree | 7184a24f04c72987e725e50e66db530e6f618220 /arch/mips/kernel | |
| parent | fee4b700a4e9e446151eb5a03874ca8666323113 (diff) | |
| parent | c5ae4dca11523dff15cfb1763b64a71b805976aa (diff) | |
Merge tag 'asoc-v3.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Updates for v3.11
A few small updates again, the sgtl5000 one fixes some newly triggered
issues due to some probe ordering changes which were introduced in the
last merge window.
Diffstat (limited to 'arch/mips/kernel')
| -rw-r--r-- | arch/mips/kernel/bmips_vec.S | 4 | ||||
| -rw-r--r-- | arch/mips/kernel/cevt-bcm1480.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/cevt-gic.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/cevt-r4k.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/cevt-sb1250.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/cevt-smtc.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/cpu-bugs64.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/cpu-probe.c | 14 | ||||
| -rw-r--r-- | arch/mips/kernel/head.S | 4 | ||||
| -rw-r--r-- | arch/mips/kernel/smp-bmips.c | 8 | ||||
| -rw-r--r-- | arch/mips/kernel/smp-mt.c | 6 | ||||
| -rw-r--r-- | arch/mips/kernel/smp-up.c | 6 | ||||
| -rw-r--r-- | arch/mips/kernel/smp.c | 6 | ||||
| -rw-r--r-- | arch/mips/kernel/smtc.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/spram.c | 14 | ||||
| -rw-r--r-- | arch/mips/kernel/sync-r4k.c | 12 | ||||
| -rw-r--r-- | arch/mips/kernel/traps.c | 13 | ||||
| -rw-r--r-- | arch/mips/kernel/watch.c | 2 |
18 files changed, 47 insertions, 56 deletions
diff --git a/arch/mips/kernel/bmips_vec.S b/arch/mips/kernel/bmips_vec.S index 64c4fd62cf08..f739aedcb509 100644 --- a/arch/mips/kernel/bmips_vec.S +++ b/arch/mips/kernel/bmips_vec.S | |||
| @@ -28,8 +28,6 @@ | |||
| 28 | .set mips0 | 28 | .set mips0 |
| 29 | .endm | 29 | .endm |
| 30 | 30 | ||
| 31 | __CPUINIT | ||
| 32 | |||
| 33 | /*********************************************************************** | 31 | /*********************************************************************** |
| 34 | * Alternate CPU1 startup vector for BMIPS4350 | 32 | * Alternate CPU1 startup vector for BMIPS4350 |
| 35 | * | 33 | * |
| @@ -216,8 +214,6 @@ END(bmips_smp_int_vec) | |||
| 216 | * Certain CPUs support extending kseg0 to 1024MB. | 214 | * Certain CPUs support extending kseg0 to 1024MB. |
| 217 | ***********************************************************************/ | 215 | ***********************************************************************/ |
| 218 | 216 | ||
| 219 | __CPUINIT | ||
| 220 | |||
| 221 | LEAF(bmips_enable_xks01) | 217 | LEAF(bmips_enable_xks01) |
| 222 | 218 | ||
| 223 | #if defined(CONFIG_XKS01) | 219 | #if defined(CONFIG_XKS01) |
diff --git a/arch/mips/kernel/cevt-bcm1480.c b/arch/mips/kernel/cevt-bcm1480.c index 15f618b40cf6..7976457184b1 100644 --- a/arch/mips/kernel/cevt-bcm1480.c +++ b/arch/mips/kernel/cevt-bcm1480.c | |||
| @@ -109,7 +109,7 @@ static DEFINE_PER_CPU(struct clock_event_device, sibyte_hpt_clockevent); | |||
| 109 | static DEFINE_PER_CPU(struct irqaction, sibyte_hpt_irqaction); | 109 | static DEFINE_PER_CPU(struct irqaction, sibyte_hpt_irqaction); |
| 110 | static DEFINE_PER_CPU(char [18], sibyte_hpt_name); | 110 | static DEFINE_PER_CPU(char [18], sibyte_hpt_name); |
| 111 | 111 | ||
| 112 | void __cpuinit sb1480_clockevent_init(void) | 112 | void sb1480_clockevent_init(void) |
| 113 | { | 113 | { |
| 114 | unsigned int cpu = smp_processor_id(); | 114 | unsigned int cpu = smp_processor_id(); |
| 115 | unsigned int irq = K_BCM1480_INT_TIMER_0 + cpu; | 115 | unsigned int irq = K_BCM1480_INT_TIMER_0 + cpu; |
diff --git a/arch/mips/kernel/cevt-gic.c b/arch/mips/kernel/cevt-gic.c index 730eaf92c018..594cbbf16d62 100644 --- a/arch/mips/kernel/cevt-gic.c +++ b/arch/mips/kernel/cevt-gic.c | |||
| @@ -59,7 +59,7 @@ void gic_event_handler(struct clock_event_device *dev) | |||
| 59 | { | 59 | { |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | int __cpuinit gic_clockevent_init(void) | 62 | int gic_clockevent_init(void) |
| 63 | { | 63 | { |
| 64 | unsigned int cpu = smp_processor_id(); | 64 | unsigned int cpu = smp_processor_id(); |
| 65 | struct clock_event_device *cd; | 65 | struct clock_event_device *cd; |
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c index 02033eaf8825..50d3f5a8d6bb 100644 --- a/arch/mips/kernel/cevt-r4k.c +++ b/arch/mips/kernel/cevt-r4k.c | |||
| @@ -171,7 +171,7 @@ int c0_compare_int_usable(void) | |||
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | #ifndef CONFIG_MIPS_MT_SMTC | 173 | #ifndef CONFIG_MIPS_MT_SMTC |
| 174 | int __cpuinit r4k_clockevent_init(void) | 174 | int r4k_clockevent_init(void) |
| 175 | { | 175 | { |
| 176 | unsigned int cpu = smp_processor_id(); | 176 | unsigned int cpu = smp_processor_id(); |
| 177 | struct clock_event_device *cd; | 177 | struct clock_event_device *cd; |
diff --git a/arch/mips/kernel/cevt-sb1250.c b/arch/mips/kernel/cevt-sb1250.c index 200f2778bf36..5ea6d6b1de15 100644 --- a/arch/mips/kernel/cevt-sb1250.c +++ b/arch/mips/kernel/cevt-sb1250.c | |||
| @@ -107,7 +107,7 @@ static DEFINE_PER_CPU(struct clock_event_device, sibyte_hpt_clockevent); | |||
| 107 | static DEFINE_PER_CPU(struct irqaction, sibyte_hpt_irqaction); | 107 | static DEFINE_PER_CPU(struct irqaction, sibyte_hpt_irqaction); |
| 108 | static DEFINE_PER_CPU(char [18], sibyte_hpt_name); | 108 | static DEFINE_PER_CPU(char [18], sibyte_hpt_name); |
| 109 | 109 | ||
| 110 | void __cpuinit sb1250_clockevent_init(void) | 110 | void sb1250_clockevent_init(void) |
| 111 | { | 111 | { |
| 112 | unsigned int cpu = smp_processor_id(); | 112 | unsigned int cpu = smp_processor_id(); |
| 113 | unsigned int irq = K_INT_TIMER_0 + cpu; | 113 | unsigned int irq = K_INT_TIMER_0 + cpu; |
diff --git a/arch/mips/kernel/cevt-smtc.c b/arch/mips/kernel/cevt-smtc.c index 9de5ed7ef1a3..b6cf0a60d896 100644 --- a/arch/mips/kernel/cevt-smtc.c +++ b/arch/mips/kernel/cevt-smtc.c | |||
| @@ -248,7 +248,7 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id) | |||
| 248 | } | 248 | } |
| 249 | 249 | ||
| 250 | 250 | ||
| 251 | int __cpuinit smtc_clockevent_init(void) | 251 | int smtc_clockevent_init(void) |
| 252 | { | 252 | { |
| 253 | uint64_t mips_freq = mips_hpt_frequency; | 253 | uint64_t mips_freq = mips_hpt_frequency; |
| 254 | unsigned int cpu = smp_processor_id(); | 254 | unsigned int cpu = smp_processor_id(); |
diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index 0c61df281ce6..2d80b5f1aeae 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c | |||
| @@ -168,7 +168,7 @@ static inline void check_mult_sh(void) | |||
| 168 | panic(bug64hit, !R4000_WAR ? r4kwar : nowar); | 168 | panic(bug64hit, !R4000_WAR ? r4kwar : nowar); |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | static volatile int daddi_ov __cpuinitdata; | 171 | static volatile int daddi_ov; |
| 172 | 172 | ||
| 173 | asmlinkage void __init do_daddi_ov(struct pt_regs *regs) | 173 | asmlinkage void __init do_daddi_ov(struct pt_regs *regs) |
| 174 | { | 174 | { |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index c7b1b3c5a761..4c6167a17875 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | #include <asm/spram.h> | 27 | #include <asm/spram.h> |
| 28 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
| 29 | 29 | ||
| 30 | static int __cpuinitdata mips_fpu_disabled; | 30 | static int mips_fpu_disabled; |
| 31 | 31 | ||
| 32 | static int __init fpu_disable(char *s) | 32 | static int __init fpu_disable(char *s) |
| 33 | { | 33 | { |
| @@ -39,7 +39,7 @@ static int __init fpu_disable(char *s) | |||
| 39 | 39 | ||
| 40 | __setup("nofpu", fpu_disable); | 40 | __setup("nofpu", fpu_disable); |
| 41 | 41 | ||
| 42 | int __cpuinitdata mips_dsp_disabled; | 42 | int mips_dsp_disabled; |
| 43 | 43 | ||
| 44 | static int __init dsp_disable(char *s) | 44 | static int __init dsp_disable(char *s) |
| 45 | { | 45 | { |
| @@ -134,7 +134,7 @@ static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) | |||
| 134 | #endif | 134 | #endif |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | static void __cpuinit set_isa(struct cpuinfo_mips *c, unsigned int isa) | 137 | static void set_isa(struct cpuinfo_mips *c, unsigned int isa) |
| 138 | { | 138 | { |
| 139 | switch (isa) { | 139 | switch (isa) { |
| 140 | case MIPS_CPU_ISA_M64R2: | 140 | case MIPS_CPU_ISA_M64R2: |
| @@ -159,7 +159,7 @@ static void __cpuinit set_isa(struct cpuinfo_mips *c, unsigned int isa) | |||
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | static char unknown_isa[] __cpuinitdata = KERN_ERR \ | 162 | static char unknown_isa[] = KERN_ERR \ |
| 163 | "Unsupported ISA type, c0.config0: %d."; | 163 | "Unsupported ISA type, c0.config0: %d."; |
| 164 | 164 | ||
| 165 | static inline unsigned int decode_config0(struct cpuinfo_mips *c) | 165 | static inline unsigned int decode_config0(struct cpuinfo_mips *c) |
| @@ -290,7 +290,7 @@ static inline unsigned int decode_config4(struct cpuinfo_mips *c) | |||
| 290 | return config4 & MIPS_CONF_M; | 290 | return config4 & MIPS_CONF_M; |
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | static void __cpuinit decode_configs(struct cpuinfo_mips *c) | 293 | static void decode_configs(struct cpuinfo_mips *c) |
| 294 | { | 294 | { |
| 295 | int ok; | 295 | int ok; |
| 296 | 296 | ||
| @@ -962,7 +962,7 @@ EXPORT_SYMBOL(__ua_limit); | |||
| 962 | const char *__cpu_name[NR_CPUS]; | 962 | const char *__cpu_name[NR_CPUS]; |
| 963 | const char *__elf_platform; | 963 | const char *__elf_platform; |
| 964 | 964 | ||
| 965 | __cpuinit void cpu_probe(void) | 965 | void cpu_probe(void) |
| 966 | { | 966 | { |
| 967 | struct cpuinfo_mips *c = ¤t_cpu_data; | 967 | struct cpuinfo_mips *c = ¤t_cpu_data; |
| 968 | unsigned int cpu = smp_processor_id(); | 968 | unsigned int cpu = smp_processor_id(); |
| @@ -1047,7 +1047,7 @@ __cpuinit void cpu_probe(void) | |||
| 1047 | #endif | 1047 | #endif |
| 1048 | } | 1048 | } |
| 1049 | 1049 | ||
| 1050 | __cpuinit void cpu_report(void) | 1050 | void cpu_report(void) |
| 1051 | { | 1051 | { |
| 1052 | struct cpuinfo_mips *c = ¤t_cpu_data; | 1052 | struct cpuinfo_mips *c = ¤t_cpu_data; |
| 1053 | 1053 | ||
diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S index 099912324423..7b6a5b3e3acf 100644 --- a/arch/mips/kernel/head.S +++ b/arch/mips/kernel/head.S | |||
| @@ -158,8 +158,6 @@ NESTED(kernel_entry, 16, sp) # kernel entry point | |||
| 158 | j start_kernel | 158 | j start_kernel |
| 159 | END(kernel_entry) | 159 | END(kernel_entry) |
| 160 | 160 | ||
| 161 | __CPUINIT | ||
| 162 | |||
| 163 | #ifdef CONFIG_SMP | 161 | #ifdef CONFIG_SMP |
| 164 | /* | 162 | /* |
| 165 | * SMP slave cpus entry point. Board specific code for bootstrap calls this | 163 | * SMP slave cpus entry point. Board specific code for bootstrap calls this |
| @@ -188,5 +186,3 @@ NESTED(smp_bootstrap, 16, sp) | |||
| 188 | j start_secondary | 186 | j start_secondary |
| 189 | END(smp_bootstrap) | 187 | END(smp_bootstrap) |
| 190 | #endif /* CONFIG_SMP */ | 188 | #endif /* CONFIG_SMP */ |
| 191 | |||
| 192 | __FINIT | ||
diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index aea6c0885838..c0bb4d59076a 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c | |||
| @@ -173,7 +173,7 @@ static void bmips_boot_secondary(int cpu, struct task_struct *idle) | |||
| 173 | else { | 173 | else { |
| 174 | #if defined(CONFIG_CPU_BMIPS4350) || defined(CONFIG_CPU_BMIPS4380) | 174 | #if defined(CONFIG_CPU_BMIPS4350) || defined(CONFIG_CPU_BMIPS4380) |
| 175 | /* Reset slave TP1 if booting from TP0 */ | 175 | /* Reset slave TP1 if booting from TP0 */ |
| 176 | if (cpu_logical_map(cpu) == 0) | 176 | if (cpu_logical_map(cpu) == 1) |
| 177 | set_c0_brcm_cmt_ctrl(0x01); | 177 | set_c0_brcm_cmt_ctrl(0x01); |
| 178 | #elif defined(CONFIG_CPU_BMIPS5000) | 178 | #elif defined(CONFIG_CPU_BMIPS5000) |
| 179 | if (cpu & 0x01) | 179 | if (cpu & 0x01) |
| @@ -398,7 +398,7 @@ struct plat_smp_ops bmips_smp_ops = { | |||
| 398 | * UP BMIPS systems as well. | 398 | * UP BMIPS systems as well. |
| 399 | ***********************************************************************/ | 399 | ***********************************************************************/ |
| 400 | 400 | ||
| 401 | static void __cpuinit bmips_wr_vec(unsigned long dst, char *start, char *end) | 401 | static void bmips_wr_vec(unsigned long dst, char *start, char *end) |
| 402 | { | 402 | { |
| 403 | memcpy((void *)dst, start, end - start); | 403 | memcpy((void *)dst, start, end - start); |
| 404 | dma_cache_wback((unsigned long)start, end - start); | 404 | dma_cache_wback((unsigned long)start, end - start); |
| @@ -406,7 +406,7 @@ static void __cpuinit bmips_wr_vec(unsigned long dst, char *start, char *end) | |||
| 406 | instruction_hazard(); | 406 | instruction_hazard(); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | static inline void __cpuinit bmips_nmi_handler_setup(void) | 409 | static inline void bmips_nmi_handler_setup(void) |
| 410 | { | 410 | { |
| 411 | bmips_wr_vec(BMIPS_NMI_RESET_VEC, &bmips_reset_nmi_vec, | 411 | bmips_wr_vec(BMIPS_NMI_RESET_VEC, &bmips_reset_nmi_vec, |
| 412 | &bmips_reset_nmi_vec_end); | 412 | &bmips_reset_nmi_vec_end); |
| @@ -414,7 +414,7 @@ static inline void __cpuinit bmips_nmi_handler_setup(void) | |||
| 414 | &bmips_smp_int_vec_end); | 414 | &bmips_smp_int_vec_end); |
| 415 | } | 415 | } |
| 416 | 416 | ||
| 417 | void __cpuinit bmips_ebase_setup(void) | 417 | void bmips_ebase_setup(void) |
| 418 | { | 418 | { |
| 419 | unsigned long new_ebase = ebase; | 419 | unsigned long new_ebase = ebase; |
| 420 | void __iomem __maybe_unused *cbr; | 420 | void __iomem __maybe_unused *cbr; |
diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c index 3e5164c11cac..57a3f7a2b370 100644 --- a/arch/mips/kernel/smp-mt.c +++ b/arch/mips/kernel/smp-mt.c | |||
| @@ -149,7 +149,7 @@ static void vsmp_send_ipi_mask(const struct cpumask *mask, unsigned int action) | |||
| 149 | vsmp_send_ipi_single(i, action); | 149 | vsmp_send_ipi_single(i, action); |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | static void __cpuinit vsmp_init_secondary(void) | 152 | static void vsmp_init_secondary(void) |
| 153 | { | 153 | { |
| 154 | #ifdef CONFIG_IRQ_GIC | 154 | #ifdef CONFIG_IRQ_GIC |
| 155 | /* This is Malta specific: IPI,performance and timer interrupts */ | 155 | /* This is Malta specific: IPI,performance and timer interrupts */ |
| @@ -162,7 +162,7 @@ static void __cpuinit vsmp_init_secondary(void) | |||
| 162 | STATUSF_IP6 | STATUSF_IP7); | 162 | STATUSF_IP6 | STATUSF_IP7); |
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | static void __cpuinit vsmp_smp_finish(void) | 165 | static void vsmp_smp_finish(void) |
| 166 | { | 166 | { |
| 167 | /* CDFIXME: remove this? */ | 167 | /* CDFIXME: remove this? */ |
| 168 | write_c0_compare(read_c0_count() + (8* mips_hpt_frequency/HZ)); | 168 | write_c0_compare(read_c0_count() + (8* mips_hpt_frequency/HZ)); |
| @@ -188,7 +188,7 @@ static void vsmp_cpus_done(void) | |||
| 188 | * (unsigned long)idle->thread_info the gp | 188 | * (unsigned long)idle->thread_info the gp |
| 189 | * assumes a 1:1 mapping of TC => VPE | 189 | * assumes a 1:1 mapping of TC => VPE |
| 190 | */ | 190 | */ |
| 191 | static void __cpuinit vsmp_boot_secondary(int cpu, struct task_struct *idle) | 191 | static void vsmp_boot_secondary(int cpu, struct task_struct *idle) |
| 192 | { | 192 | { |
| 193 | struct thread_info *gp = task_thread_info(idle); | 193 | struct thread_info *gp = task_thread_info(idle); |
| 194 | dvpe(); | 194 | dvpe(); |
diff --git a/arch/mips/kernel/smp-up.c b/arch/mips/kernel/smp-up.c index 00500fea2750..7fde3e4d978f 100644 --- a/arch/mips/kernel/smp-up.c +++ b/arch/mips/kernel/smp-up.c | |||
| @@ -28,11 +28,11 @@ static inline void up_send_ipi_mask(const struct cpumask *mask, | |||
| 28 | * After we've done initial boot, this function is called to allow the | 28 | * After we've done initial boot, this function is called to allow the |
| 29 | * board code to clean up state, if needed | 29 | * board code to clean up state, if needed |
| 30 | */ | 30 | */ |
| 31 | static void __cpuinit up_init_secondary(void) | 31 | static void up_init_secondary(void) |
| 32 | { | 32 | { |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | static void __cpuinit up_smp_finish(void) | 35 | static void up_smp_finish(void) |
| 36 | { | 36 | { |
| 37 | } | 37 | } |
| 38 | 38 | ||
| @@ -44,7 +44,7 @@ static void up_cpus_done(void) | |||
| 44 | /* | 44 | /* |
| 45 | * Firmware CPU startup hook | 45 | * Firmware CPU startup hook |
| 46 | */ | 46 | */ |
| 47 | static void __cpuinit up_boot_secondary(int cpu, struct task_struct *idle) | 47 | static void up_boot_secondary(int cpu, struct task_struct *idle) |
| 48 | { | 48 | { |
| 49 | } | 49 | } |
| 50 | 50 | ||
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 6e7862ab46cc..5c208ed8f856 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c | |||
| @@ -86,7 +86,7 @@ static inline void set_cpu_sibling_map(int cpu) | |||
| 86 | struct plat_smp_ops *mp_ops; | 86 | struct plat_smp_ops *mp_ops; |
| 87 | EXPORT_SYMBOL(mp_ops); | 87 | EXPORT_SYMBOL(mp_ops); |
| 88 | 88 | ||
| 89 | __cpuinit void register_smp_ops(struct plat_smp_ops *ops) | 89 | void register_smp_ops(struct plat_smp_ops *ops) |
| 90 | { | 90 | { |
| 91 | if (mp_ops) | 91 | if (mp_ops) |
| 92 | printk(KERN_WARNING "Overriding previously set SMP ops\n"); | 92 | printk(KERN_WARNING "Overriding previously set SMP ops\n"); |
| @@ -98,7 +98,7 @@ __cpuinit void register_smp_ops(struct plat_smp_ops *ops) | |||
| 98 | * First C code run on the secondary CPUs after being started up by | 98 | * First C code run on the secondary CPUs after being started up by |
| 99 | * the master. | 99 | * the master. |
| 100 | */ | 100 | */ |
| 101 | asmlinkage __cpuinit void start_secondary(void) | 101 | asmlinkage void start_secondary(void) |
| 102 | { | 102 | { |
| 103 | unsigned int cpu; | 103 | unsigned int cpu; |
| 104 | 104 | ||
| @@ -197,7 +197,7 @@ void smp_prepare_boot_cpu(void) | |||
| 197 | cpu_set(0, cpu_callin_map); | 197 | cpu_set(0, cpu_callin_map); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | int __cpuinit __cpu_up(unsigned int cpu, struct task_struct *tidle) | 200 | int __cpu_up(unsigned int cpu, struct task_struct *tidle) |
| 201 | { | 201 | { |
| 202 | mp_ops->boot_secondary(cpu, tidle); | 202 | mp_ops->boot_secondary(cpu, tidle); |
| 203 | 203 | ||
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 75a4fd709841..dfc1b911be04 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c | |||
| @@ -645,7 +645,7 @@ void smtc_prepare_cpus(int cpus) | |||
| 645 | * (unsigned long)idle->thread_info the gp | 645 | * (unsigned long)idle->thread_info the gp |
| 646 | * | 646 | * |
| 647 | */ | 647 | */ |
| 648 | void __cpuinit smtc_boot_secondary(int cpu, struct task_struct *idle) | 648 | void smtc_boot_secondary(int cpu, struct task_struct *idle) |
| 649 | { | 649 | { |
| 650 | extern u32 kernelsp[NR_CPUS]; | 650 | extern u32 kernelsp[NR_CPUS]; |
| 651 | unsigned long flags; | 651 | unsigned long flags; |
diff --git a/arch/mips/kernel/spram.c b/arch/mips/kernel/spram.c index 6af08d896e20..93f86817f20a 100644 --- a/arch/mips/kernel/spram.c +++ b/arch/mips/kernel/spram.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | /* | 37 | /* |
| 38 | * Different semantics to the set_c0_* function built by __BUILD_SET_C0 | 38 | * Different semantics to the set_c0_* function built by __BUILD_SET_C0 |
| 39 | */ | 39 | */ |
| 40 | static __cpuinit unsigned int bis_c0_errctl(unsigned int set) | 40 | static unsigned int bis_c0_errctl(unsigned int set) |
| 41 | { | 41 | { |
| 42 | unsigned int res; | 42 | unsigned int res; |
| 43 | res = read_c0_errctl(); | 43 | res = read_c0_errctl(); |
| @@ -45,7 +45,7 @@ static __cpuinit unsigned int bis_c0_errctl(unsigned int set) | |||
| 45 | return res; | 45 | return res; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | static __cpuinit void ispram_store_tag(unsigned int offset, unsigned int data) | 48 | static void ispram_store_tag(unsigned int offset, unsigned int data) |
| 49 | { | 49 | { |
| 50 | unsigned int errctl; | 50 | unsigned int errctl; |
| 51 | 51 | ||
| @@ -64,7 +64,7 @@ static __cpuinit void ispram_store_tag(unsigned int offset, unsigned int data) | |||
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | static __cpuinit unsigned int ispram_load_tag(unsigned int offset) | 67 | static unsigned int ispram_load_tag(unsigned int offset) |
| 68 | { | 68 | { |
| 69 | unsigned int data; | 69 | unsigned int data; |
| 70 | unsigned int errctl; | 70 | unsigned int errctl; |
| @@ -82,7 +82,7 @@ static __cpuinit unsigned int ispram_load_tag(unsigned int offset) | |||
| 82 | return data; | 82 | return data; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | static __cpuinit void dspram_store_tag(unsigned int offset, unsigned int data) | 85 | static void dspram_store_tag(unsigned int offset, unsigned int data) |
| 86 | { | 86 | { |
| 87 | unsigned int errctl; | 87 | unsigned int errctl; |
| 88 | 88 | ||
| @@ -98,7 +98,7 @@ static __cpuinit void dspram_store_tag(unsigned int offset, unsigned int data) | |||
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | 100 | ||
| 101 | static __cpuinit unsigned int dspram_load_tag(unsigned int offset) | 101 | static unsigned int dspram_load_tag(unsigned int offset) |
| 102 | { | 102 | { |
| 103 | unsigned int data; | 103 | unsigned int data; |
| 104 | unsigned int errctl; | 104 | unsigned int errctl; |
| @@ -115,7 +115,7 @@ static __cpuinit unsigned int dspram_load_tag(unsigned int offset) | |||
| 115 | return data; | 115 | return data; |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | static __cpuinit void probe_spram(char *type, | 118 | static void probe_spram(char *type, |
| 119 | unsigned int base, | 119 | unsigned int base, |
| 120 | unsigned int (*read)(unsigned int), | 120 | unsigned int (*read)(unsigned int), |
| 121 | void (*write)(unsigned int, unsigned int)) | 121 | void (*write)(unsigned int, unsigned int)) |
| @@ -196,7 +196,7 @@ static __cpuinit void probe_spram(char *type, | |||
| 196 | offset += 2 * SPRAM_TAG_STRIDE; | 196 | offset += 2 * SPRAM_TAG_STRIDE; |
| 197 | } | 197 | } |
| 198 | } | 198 | } |
| 199 | void __cpuinit spram_config(void) | 199 | void spram_config(void) |
| 200 | { | 200 | { |
| 201 | struct cpuinfo_mips *c = ¤t_cpu_data; | 201 | struct cpuinfo_mips *c = ¤t_cpu_data; |
| 202 | unsigned int config0; | 202 | unsigned int config0; |
diff --git a/arch/mips/kernel/sync-r4k.c b/arch/mips/kernel/sync-r4k.c index 1ff43d5ac2c4..84536bf4a154 100644 --- a/arch/mips/kernel/sync-r4k.c +++ b/arch/mips/kernel/sync-r4k.c | |||
| @@ -20,15 +20,15 @@ | |||
| 20 | #include <asm/barrier.h> | 20 | #include <asm/barrier.h> |
| 21 | #include <asm/mipsregs.h> | 21 | #include <asm/mipsregs.h> |
| 22 | 22 | ||
| 23 | static atomic_t __cpuinitdata count_start_flag = ATOMIC_INIT(0); | 23 | static atomic_t count_start_flag = ATOMIC_INIT(0); |
| 24 | static atomic_t __cpuinitdata count_count_start = ATOMIC_INIT(0); | 24 | static atomic_t count_count_start = ATOMIC_INIT(0); |
| 25 | static atomic_t __cpuinitdata count_count_stop = ATOMIC_INIT(0); | 25 | static atomic_t count_count_stop = ATOMIC_INIT(0); |
| 26 | static atomic_t __cpuinitdata count_reference = ATOMIC_INIT(0); | 26 | static atomic_t count_reference = ATOMIC_INIT(0); |
| 27 | 27 | ||
| 28 | #define COUNTON 100 | 28 | #define COUNTON 100 |
| 29 | #define NR_LOOPS 5 | 29 | #define NR_LOOPS 5 |
| 30 | 30 | ||
| 31 | void __cpuinit synchronise_count_master(int cpu) | 31 | void synchronise_count_master(int cpu) |
| 32 | { | 32 | { |
| 33 | int i; | 33 | int i; |
| 34 | unsigned long flags; | 34 | unsigned long flags; |
| @@ -106,7 +106,7 @@ void __cpuinit synchronise_count_master(int cpu) | |||
| 106 | printk("done.\n"); | 106 | printk("done.\n"); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | void __cpuinit synchronise_count_slave(int cpu) | 109 | void synchronise_count_slave(int cpu) |
| 110 | { | 110 | { |
| 111 | int i; | 111 | int i; |
| 112 | unsigned int initcount; | 112 | unsigned int initcount; |
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 0903d70b2cfe..aec3408edd4b 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
| @@ -90,7 +90,7 @@ void (*board_nmi_handler_setup)(void); | |||
| 90 | void (*board_ejtag_handler_setup)(void); | 90 | void (*board_ejtag_handler_setup)(void); |
| 91 | void (*board_bind_eic_interrupt)(int irq, int regset); | 91 | void (*board_bind_eic_interrupt)(int irq, int regset); |
| 92 | void (*board_ebase_setup)(void); | 92 | void (*board_ebase_setup)(void); |
| 93 | void __cpuinitdata(*board_cache_error_setup)(void); | 93 | void(*board_cache_error_setup)(void); |
| 94 | 94 | ||
| 95 | static void show_raw_backtrace(unsigned long reg29) | 95 | static void show_raw_backtrace(unsigned long reg29) |
| 96 | { | 96 | { |
| @@ -1242,7 +1242,6 @@ asmlinkage void do_mcheck(struct pt_regs *regs) | |||
| 1242 | panic("Caught Machine Check exception - %scaused by multiple " | 1242 | panic("Caught Machine Check exception - %scaused by multiple " |
| 1243 | "matching entries in the TLB.", | 1243 | "matching entries in the TLB.", |
| 1244 | (multi_match) ? "" : "not "); | 1244 | (multi_match) ? "" : "not "); |
| 1245 | exception_exit(prev_state); | ||
| 1246 | } | 1245 | } |
| 1247 | 1246 | ||
| 1248 | asmlinkage void do_mt(struct pt_regs *regs) | 1247 | asmlinkage void do_mt(struct pt_regs *regs) |
| @@ -1682,7 +1681,7 @@ int cp0_compare_irq_shift; | |||
| 1682 | int cp0_perfcount_irq; | 1681 | int cp0_perfcount_irq; |
| 1683 | EXPORT_SYMBOL_GPL(cp0_perfcount_irq); | 1682 | EXPORT_SYMBOL_GPL(cp0_perfcount_irq); |
| 1684 | 1683 | ||
| 1685 | static int __cpuinitdata noulri; | 1684 | static int noulri; |
| 1686 | 1685 | ||
| 1687 | static int __init ulri_disable(char *s) | 1686 | static int __init ulri_disable(char *s) |
| 1688 | { | 1687 | { |
| @@ -1693,7 +1692,7 @@ static int __init ulri_disable(char *s) | |||
| 1693 | } | 1692 | } |
| 1694 | __setup("noulri", ulri_disable); | 1693 | __setup("noulri", ulri_disable); |
| 1695 | 1694 | ||
| 1696 | void __cpuinit per_cpu_trap_init(bool is_boot_cpu) | 1695 | void per_cpu_trap_init(bool is_boot_cpu) |
| 1697 | { | 1696 | { |
| 1698 | unsigned int cpu = smp_processor_id(); | 1697 | unsigned int cpu = smp_processor_id(); |
| 1699 | unsigned int status_set = ST0_CU0; | 1698 | unsigned int status_set = ST0_CU0; |
| @@ -1810,7 +1809,7 @@ void __cpuinit per_cpu_trap_init(bool is_boot_cpu) | |||
| 1810 | } | 1809 | } |
| 1811 | 1810 | ||
| 1812 | /* Install CPU exception handler */ | 1811 | /* Install CPU exception handler */ |
| 1813 | void __cpuinit set_handler(unsigned long offset, void *addr, unsigned long size) | 1812 | void set_handler(unsigned long offset, void *addr, unsigned long size) |
| 1814 | { | 1813 | { |
| 1815 | #ifdef CONFIG_CPU_MICROMIPS | 1814 | #ifdef CONFIG_CPU_MICROMIPS |
| 1816 | memcpy((void *)(ebase + offset), ((unsigned char *)addr - 1), size); | 1815 | memcpy((void *)(ebase + offset), ((unsigned char *)addr - 1), size); |
| @@ -1820,7 +1819,7 @@ void __cpuinit set_handler(unsigned long offset, void *addr, unsigned long size) | |||
| 1820 | local_flush_icache_range(ebase + offset, ebase + offset + size); | 1819 | local_flush_icache_range(ebase + offset, ebase + offset + size); |
| 1821 | } | 1820 | } |
| 1822 | 1821 | ||
| 1823 | static char panic_null_cerr[] __cpuinitdata = | 1822 | static char panic_null_cerr[] = |
| 1824 | "Trying to set NULL cache error exception handler"; | 1823 | "Trying to set NULL cache error exception handler"; |
| 1825 | 1824 | ||
| 1826 | /* | 1825 | /* |
| @@ -1828,7 +1827,7 @@ static char panic_null_cerr[] __cpuinitdata = | |||
| 1828 | * This is suitable only for the cache error exception which is the only | 1827 | * This is suitable only for the cache error exception which is the only |
| 1829 | * exception handler that is being run uncached. | 1828 | * exception handler that is being run uncached. |
| 1830 | */ | 1829 | */ |
| 1831 | void __cpuinit set_uncached_handler(unsigned long offset, void *addr, | 1830 | void set_uncached_handler(unsigned long offset, void *addr, |
| 1832 | unsigned long size) | 1831 | unsigned long size) |
| 1833 | { | 1832 | { |
| 1834 | unsigned long uncached_ebase = CKSEG1ADDR(ebase); | 1833 | unsigned long uncached_ebase = CKSEG1ADDR(ebase); |
diff --git a/arch/mips/kernel/watch.c b/arch/mips/kernel/watch.c index cbdc4de85bb4..2a03abb5bd2c 100644 --- a/arch/mips/kernel/watch.c +++ b/arch/mips/kernel/watch.c | |||
| @@ -100,7 +100,7 @@ void mips_clear_watch_registers(void) | |||
| 100 | } | 100 | } |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | __cpuinit void mips_probe_watch_registers(struct cpuinfo_mips *c) | 103 | void mips_probe_watch_registers(struct cpuinfo_mips *c) |
| 104 | { | 104 | { |
| 105 | unsigned int t; | 105 | unsigned int t; |
| 106 | 106 | ||
