Lines Matching defs:cluster

59 static int exynos_cpu_powerup(unsigned int cpu, unsigned int cluster)
61 unsigned int cpunr = cpu + (cluster * EXYNOS5420_CPUS_PER_CLUSTER);
64 pr_debug("%s: cpu %u cluster %u\n", __func__, cpu, cluster);
66 cluster >= EXYNOS5420_NR_CLUSTERS)
73 * This assumes the cluster number of the big cores(Cortex A15)
78 if (cluster &&
79 cluster == MPIDR_AFFINITY_LEVEL(cpu_logical_map(0), 1)) {
94 pr_err("cpu %u cluster %u powerup failed\n",
95 cpu, cluster);
108 static int exynos_cluster_powerup(unsigned int cluster)
110 pr_debug("%s: cluster %u\n", __func__, cluster);
111 if (cluster >= EXYNOS5420_NR_CLUSTERS)
114 exynos_cluster_power_up(cluster);
118 static void exynos_cpu_powerdown_prepare(unsigned int cpu, unsigned int cluster)
120 unsigned int cpunr = cpu + (cluster * EXYNOS5420_CPUS_PER_CLUSTER);
122 pr_debug("%s: cpu %u cluster %u\n", __func__, cpu, cluster);
124 cluster >= EXYNOS5420_NR_CLUSTERS);
128 static void exynos_cluster_powerdown_prepare(unsigned int cluster)
130 pr_debug("%s: cluster %u\n", __func__, cluster);
131 BUG_ON(cluster >= EXYNOS5420_NR_CLUSTERS);
132 exynos_cluster_power_down(cluster);
155 /* Flush all cache levels for this cluster. */
159 * Disable cluster-level coherency by masking
165 static int exynos_wait_for_powerdown(unsigned int cpu, unsigned int cluster)
168 unsigned int cpunr = cpu + (cluster * EXYNOS5420_CPUS_PER_CLUSTER);
170 pr_debug("%s: cpu %u cluster %u\n", __func__, cpu, cluster);
172 cluster >= EXYNOS5420_NR_CLUSTERS);
186 static void exynos_cpu_is_up(unsigned int cpu, unsigned int cluster)
189 exynos_cpu_powerup(cpu, cluster);
204 * Enable cluster-level coherency, in preparation for turning on the MMU.
289 * in a cluster are turned off before turning off the cluster L2.
294 * EXYNOS5420_USE_L2_COMMON_UP_STATE ensures that cluster L2 will be