]> Pileus Git - ~andy/linux/commitdiff
MIPS: MT: Mark existing TCs as present
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 9 Oct 2013 15:16:25 +0000 (16:16 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 22 Jan 2014 19:18:56 +0000 (20:18 +0100)
According to Documentation/cpu-hotplug.txt, the cpu_present_mask should
contain all the CPUs which are present in the system. Therefore, all the TCs
currently present in the system should be marked as 'present' even if they
will never be brought online.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6039/

arch/mips/kernel/smp-mt.c

index 57a3f7a2b370c1af38296b7439b26bf60f387833..35f8d22d56a9535f8637295c1b05b1f5e130b53d 100644 (file)
@@ -71,6 +71,7 @@ static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0,
 
                /* Record this as available CPU */
                set_cpu_possible(tc, true);
+               set_cpu_present(tc, true);
                __cpu_number_map[tc]    = ++ncpu;
                __cpu_logical_map[ncpu] = tc;
        }