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