aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/netlogic/xlp/setup.c
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2014-01-14 06:39:15 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-01-24 16:39:50 -0500
commite92e1d0d789634f8136c7ca1cb7d679acc3c52b0 (patch)
tree6d45c181f9cdb1f99cf1aacf5bfc1a34824a37a5 /arch/mips/netlogic/xlp/setup.c
parent194d315da86af504559a8a21026360097575bd55 (diff)
MIPS: Netlogic: Core wakeup improvements
Move wakeup to after early console. This will allow us to display error messages when cores are not woken up. Also reduce the wait time for core to come up. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6303/
Diffstat (limited to 'arch/mips/netlogic/xlp/setup.c')
-rw-r--r--arch/mips/netlogic/xlp/setup.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/mips/netlogic/xlp/setup.c b/arch/mips/netlogic/xlp/setup.c
index 2a39bbeb45b0..c3af2d8772cf 100644
--- a/arch/mips/netlogic/xlp/setup.c
+++ b/arch/mips/netlogic/xlp/setup.c
@@ -96,6 +96,14 @@ static void __init xlp_init_mem_from_bars(void)
96 96
97void __init plat_mem_setup(void) 97void __init plat_mem_setup(void)
98{ 98{
99#ifdef CONFIG_SMP
100 nlm_wakeup_secondary_cpus();
101
102 /* update TLB size after waking up threads */
103 current_cpu_data.tlbsize = ((read_c0_config6() >> 16) & 0xffff) + 1;
104
105 register_smp_ops(&nlm_smp_ops);
106#endif
99 panic_timeout = 5; 107 panic_timeout = 5;
100 _machine_restart = (void (*)(char *))nlm_linux_exit; 108 _machine_restart = (void (*)(char *))nlm_linux_exit;
101 _machine_halt = nlm_linux_exit; 109 _machine_halt = nlm_linux_exit;
@@ -172,11 +180,5 @@ void __init prom_init(void)
172 180
173#ifdef CONFIG_SMP 181#ifdef CONFIG_SMP
174 cpumask_setall(&nlm_cpumask); 182 cpumask_setall(&nlm_cpumask);
175 nlm_wakeup_secondary_cpus();
176
177 /* update TLB size after waking up threads */
178 current_cpu_data.tlbsize = ((read_c0_config6() >> 16) & 0xffff) + 1;
179
180 register_smp_ops(&nlm_smp_ops);
181#endif 183#endif
182} 184}