浏览代码

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/
Markos Chandras 12 年之前
父节点
当前提交
c2c2a64493
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/mips/kernel/smp-mt.c

+ 1 - 0
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 */
 		/* Record this as available CPU */
 		set_cpu_possible(tc, true);
 		set_cpu_possible(tc, true);
+		set_cpu_present(tc, true);
 		__cpu_number_map[tc]	= ++ncpu;
 		__cpu_number_map[tc]	= ++ncpu;
 		__cpu_logical_map[ncpu] = tc;
 		__cpu_logical_map[ncpu] = tc;
 	}
 	}