Lines Matching refs:tc
46 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0,
49 if (tc >= smp_max_threads ||
50 (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT)))
54 if (tc != 0) {
64 set_cpu_possible(tc, true);
65 set_cpu_present(tc, true);
66 __cpu_number_map[tc] = ++ncpu;
67 __cpu_logical_map[ncpu] = tc;
73 if (tc != 0)
76 cpu_set_vpe_id(&cpu_data[ncpu], tc);
81 static void __init smvp_tc_init(unsigned int tc, unsigned int mvpconf0)
85 if (!tc)
90 if (tc >= (((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT)+1))
93 write_tc_c0_tcbind(read_tc_c0_tcbind() | tc);
96 write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() | (tc << VPECONF0_XTC_SHIFT));
154 /* enable the tc this vpe/cpu will be running */
186 unsigned int mvpconf0, ntc, tc, ncpu = 0;
212 for (tc = 0; tc <= ntc; tc++) {
213 settc(tc);
215 smvp_tc_init(tc, mvpconf0);
216 ncpu = smvp_vpe_init(tc, mvpconf0, ncpu);