aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/netlogic/common/smp.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c
index 476c93ef3037..db17f49886c2 100644
--- a/arch/mips/netlogic/common/smp.c
+++ b/arch/mips/netlogic/common/smp.c
@@ -108,9 +108,16 @@ void nlm_early_init_secondary(int cpu)
108 */ 108 */
109static void __cpuinit nlm_init_secondary(void) 109static void __cpuinit nlm_init_secondary(void)
110{ 110{
111 current_cpu_data.core = hard_smp_processor_id() / 4;
111 nlm_smp_irq_init(); 112 nlm_smp_irq_init();
112} 113}
113 114
115void nlm_prepare_cpus(unsigned int max_cpus)
116{
117 /* declare we are SMT capable */
118 smp_num_siblings = nlm_threads_per_core;
119}
120
114void nlm_smp_finish(void) 121void nlm_smp_finish(void)
115{ 122{
116#ifdef notyet 123#ifdef notyet
@@ -183,10 +190,6 @@ void __init nlm_smp_setup(void)
183 nlm_set_nmi_handler(nlm_boot_secondary_cpus); 190 nlm_set_nmi_handler(nlm_boot_secondary_cpus);
184} 191}
185 192
186void nlm_prepare_cpus(unsigned int max_cpus)
187{
188}
189
190static int nlm_parse_cpumask(u32 cpu_mask) 193static int nlm_parse_cpumask(u32 cpu_mask)
191{ 194{
192 uint32_t core0_thr_mask, core_thr_mask; 195 uint32_t core0_thr_mask, core_thr_mask;