summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2013-10-09 19:16:25 +0400
committerRalf Baechle <ralf@linux-mips.org>2014-01-22 23:18:56 +0400
commitc2c2a644935dcdb287a87bf4f3cccd13bd8d3468 (patch)
tree80cd96a119ff5485eb0eacc3f1e818f4ed666468 /arch
parent175cba8c7457a4d1c331a45323600368ba977fbf (diff)
downloadlinux-c2c2a644935dcdb287a87bf4f3cccd13bd8d3468.tar.xz
MIPS: MT: Mark existing TCs as present
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/
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/smp-mt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c
index 57a3f7a2b370..35f8d22d56a9 100644
--- a/arch/mips/kernel/smp-mt.c
+++ b/arch/mips/kernel/smp-mt.c
@@ -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;
}