Lines Matching full:online
27 * @online: the count of online coupled VPEs
39 typedef unsigned (*cps_nc_entry_fn)(unsigned online, u32 *nc_ready_count);
57 /* Indicates online CPUs coupled with the current CPU */
78 static void coupled_barrier(atomic_t *a, unsigned online) in coupled_barrier() argument
92 while (atomic_read(a) < online) in coupled_barrier()
95 if (atomic_inc_return(a) == online * 2) { in coupled_barrier()
100 while (atomic_read(a) > online) in coupled_barrier()
108 unsigned online, left; in cps_pm_enter_state() local
121 /* Calculate which coupled CPUs (VPEs) are online */ in cps_pm_enter_state()
126 online = cpumask_weight(coupled_mask); in cps_pm_enter_state()
132 online = 1; in cps_pm_enter_state()
161 coupled_barrier(&per_cpu(pm_barrier, core), online); in cps_pm_enter_state()
164 left = entry(online, nc_core_ready_count); in cps_pm_enter_state()
180 if (coupled_coherence && (state == CPS_PM_NC_WAIT) && (left == online)) in cps_pm_enter_state()
729 return cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mips/cps_pm:online", in cps_pm_init()