Lines Matching full:cluster

3  * arch/arm/common/bL_switcher.c -- big.LITTLE cluster switcher core driver
118 * with the cluster number.
141 * bL_switch_to - Switch to a specific cluster for the current CPU
142 * @new_cluster_id: the ID of the cluster to switch to.
273 int cluster; in bL_switcher_thread() local
288 cluster = t->wanted_cluster; in bL_switcher_thread()
295 if (cluster != -1) { in bL_switcher_thread()
296 bL_switch_to(cluster); in bL_switcher_thread()
319 * bL_switch_request_cb - Switch to a specific cluster for the given CPU,
323 * @new_cluster_id: the ID of the cluster to switch to.
329 * This function causes a cluster switch on the given CPU by waking up
420 unsigned int cpu, cluster, mask; in bL_switcher_halve_cpus() local
427 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
428 if (cluster >= 2) { in bL_switcher_halve_cpus()
429 pr_err("%s: only dual cluster systems are supported\n", __func__); in bL_switcher_halve_cpus()
434 mask |= (1 << cluster); in bL_switcher_halve_cpus()
443 * from a different cluster. To get a uniform scheduling behavior in bL_switcher_halve_cpus()
445 * we'll use logical CPUs initially belonging to the same cluster. in bL_switcher_halve_cpus()
452 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
454 cluster_0 = cluster; in bL_switcher_halve_cpus()
455 if (cluster != cluster_0) in bL_switcher_halve_cpus()
459 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(j), 1); in bL_switcher_halve_cpus()
466 if (cluster != cluster_0) in bL_switcher_halve_cpus()
483 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
492 bL_gic_id[cpu][cluster] = gic_id; in bL_switcher_halve_cpus()
493 pr_info("GIC ID for CPU %u cluster %u is %u\n", in bL_switcher_halve_cpus()
494 cpu, cluster, gic_id); in bL_switcher_halve_cpus()
497 bL_switcher_cpu_original_cluster[i] = cluster; in bL_switcher_halve_cpus()
602 unsigned int cpu, cluster; in bL_switcher_disable() local
622 * Then, if the final cluster for given logical CPU is not the in bL_switcher_disable()
635 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(cpu), 1); in bL_switcher_disable()
636 if (cluster == bL_switcher_cpu_original_cluster[cpu]) in bL_switcher_disable()
644 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(cpu), 1); in bL_switcher_disable()
645 if (cluster == bL_switcher_cpu_original_cluster[cpu]) in bL_switcher_disable()
649 pr_crit("%s: unable to restore original cluster for CPU %d\n", in bL_switcher_disable()