Lines Matching full:cluster
124 * mips_cps_cluster_config - return (GCR|CPC)_CONFIG from a cluster
125 * @cluster: the ID of the cluster whose config we want
127 * Read the value of GCR_CONFIG (or its CPC_CONFIG mirror) from a @cluster.
131 static inline uint64_t mips_cps_cluster_config(unsigned int cluster) in mips_cps_cluster_config() argument
139 * within this cluster. in mips_cps_cluster_config()
141 WARN_ON(cluster != 0); in mips_cps_cluster_config()
149 mips_cm_lock_other(cluster, 0, 0, CM_GCR_Cx_OTHER_BLOCK_GLOBAL); in mips_cps_cluster_config()
158 * mips_cps_numcores - return the number of cores present in a cluster
159 * @cluster: the ID of the cluster whose core count we want
164 static inline unsigned int mips_cps_numcores(unsigned int cluster) in mips_cps_numcores() argument
171 mips_cps_cluster_config(cluster) + 1); in mips_cps_numcores()
175 * mips_cps_numiocu - return the number of IOCUs present in a cluster
176 * @cluster: the ID of the cluster whose IOCU count we want
181 static inline unsigned int mips_cps_numiocu(unsigned int cluster) in mips_cps_numiocu() argument
187 mips_cps_cluster_config(cluster)); in mips_cps_numiocu()
192 * @cluster: the ID of the cluster containing the core we want to examine
196 * are supported by the given @core in the given @cluster. If the core or the
199 static inline unsigned int mips_cps_numvps(unsigned int cluster, unsigned int core) in mips_cps_numvps() argument
210 mips_cm_lock_other(cluster, core, 0, CM_GCR_Cx_OTHER_BLOCK_LOCAL); in mips_cps_numvps()
214 * Prior to CM 3.5 we can only have one cluster & don't have in mips_cps_numvps()
222 * up the cluster's CM here. in mips_cps_numvps()
236 * whether we can treat the system as single or multi-cluster as far as CPUs
248 * CPUs are numbered sequentially by cluster - ie. CPUs 0..X will be in in mips_cps_multicluster_cpus()
249 * cluster 0, CPUs X+1..Y in cluster 1, CPUs Y+1..Z in cluster 2 etc. in mips_cps_multicluster_cpus()
252 * the first & last CPUs belong to the same cluster. in mips_cps_multicluster_cpus()
260 * mips_cps_first_online_in_cluster() - Detect if CPU is first online in cluster
263 * cluster - that is, whether there are any other online CPUs in the local
264 * cluster.