Lines Matching full:online
26 * @online: the count of online coupled VPEs
38 typedef unsigned (*cps_nc_entry_fn)(unsigned online, u32 *nc_ready_count);
56 /* Indicates online CPUs coupled with the current CPU */
84 static void coupled_barrier(atomic_t *a, unsigned online) in coupled_barrier() argument
98 while (atomic_read(a) < online) in coupled_barrier()
101 if (atomic_inc_return(a) == online * 2) { in coupled_barrier()
106 while (atomic_read(a) > online) in coupled_barrier()
114 unsigned online, left; in cps_pm_enter_state() local
127 /* Calculate which coupled CPUs (VPEs) are online */ in cps_pm_enter_state()
132 online = cpumask_weight(coupled_mask); in cps_pm_enter_state()
138 online = 1; in cps_pm_enter_state()
167 coupled_barrier(&per_cpu(pm_barrier, core), online); in cps_pm_enter_state()
170 left = entry(online, nc_core_ready_count); in cps_pm_enter_state()
186 if (coupled_coherence && (state == CPS_PM_NC_WAIT) && (left == online)) in cps_pm_enter_state()
735 return cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mips/cps_pm:online", in cps_pm_init()