Lines Matching defs:cluster
57 static int exynos_cpu_powerup(unsigned int cpu, unsigned int cluster)
59 unsigned int cpunr = cpu + (cluster * EXYNOS5420_CPUS_PER_CLUSTER);
62 pr_debug("%s: cpu %u cluster %u\n", __func__, cpu, cluster);
64 cluster >= EXYNOS5420_NR_CLUSTERS)
71 * This assumes the cluster number of the big cores(Cortex A15)
76 if (cluster &&
77 cluster == MPIDR_AFFINITY_LEVEL(cpu_logical_map(0), 1)) {
92 pr_err("cpu %u cluster %u powerup failed\n",
93 cpu, cluster);
106 static int exynos_cluster_powerup(unsigned int cluster)
108 pr_debug("%s: cluster %u\n", __func__, cluster);
109 if (cluster >= EXYNOS5420_NR_CLUSTERS)
112 exynos_cluster_power_up(cluster);
116 static void exynos_cpu_powerdown_prepare(unsigned int cpu, unsigned int cluster)
118 unsigned int cpunr = cpu + (cluster * EXYNOS5420_CPUS_PER_CLUSTER);
120 pr_debug("%s: cpu %u cluster %u\n", __func__, cpu, cluster);
122 cluster >= EXYNOS5420_NR_CLUSTERS);
126 static void exynos_cluster_powerdown_prepare(unsigned int cluster)
128 pr_debug("%s: cluster %u\n", __func__, cluster);
129 BUG_ON(cluster >= EXYNOS5420_NR_CLUSTERS);
130 exynos_cluster_power_down(cluster);
153 /* Flush all cache levels for this cluster. */
157 * Disable cluster-level coherency by masking
163 static int exynos_wait_for_powerdown(unsigned int cpu, unsigned int cluster)
166 unsigned int cpunr = cpu + (cluster * EXYNOS5420_CPUS_PER_CLUSTER);
168 pr_debug("%s: cpu %u cluster %u\n", __func__, cpu, cluster);
170 cluster >= EXYNOS5420_NR_CLUSTERS);
184 static void exynos_cpu_is_up(unsigned int cpu, unsigned int cluster)
187 exynos_cpu_powerup(cpu, cluster);
202 * Enable cluster-level coherency, in preparation for turning on the MMU.
287 * in a cluster are turned off before turning off the cluster L2.
292 * EXYNOS5420_USE_L2_COMMON_UP_STATE ensures that cluster L2 will be