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()
321 * bL_switch_request_cb - Switch to a specific cluster for the given CPU,
325 * @new_cluster_id: the ID of the cluster to switch to.
331 * This function causes a cluster switch on the given CPU by waking up
422 unsigned int cpu, cluster, mask; in bL_switcher_halve_cpus() local
429 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
430 if (cluster >= 2) { in bL_switcher_halve_cpus()
431 pr_err("%s: only dual cluster systems are supported\n", __func__); in bL_switcher_halve_cpus()
436 mask |= (1 << cluster); in bL_switcher_halve_cpus()
445 * from a different cluster. To get a uniform scheduling behavior in bL_switcher_halve_cpus()
447 * we'll use logical CPUs initially belonging to the same cluster. in bL_switcher_halve_cpus()
454 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
456 cluster_0 = cluster; in bL_switcher_halve_cpus()
457 if (cluster != cluster_0) in bL_switcher_halve_cpus()
461 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(j), 1); in bL_switcher_halve_cpus()
468 if (cluster != cluster_0) in bL_switcher_halve_cpus()
485 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
494 bL_gic_id[cpu][cluster] = gic_id; in bL_switcher_halve_cpus()
495 pr_info("GIC ID for CPU %u cluster %u is %u\n", in bL_switcher_halve_cpus()
496 cpu, cluster, gic_id); in bL_switcher_halve_cpus()
499 bL_switcher_cpu_original_cluster[i] = cluster; in bL_switcher_halve_cpus()
604 unsigned int cpu, cluster; in bL_switcher_disable() local
624 * Then, if the final cluster for given logical CPU is not the in bL_switcher_disable()
637 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(cpu), 1); in bL_switcher_disable()
638 if (cluster == bL_switcher_cpu_original_cluster[cpu]) in bL_switcher_disable()
646 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(cpu), 1); in bL_switcher_disable()
647 if (cluster == bL_switcher_cpu_original_cluster[cpu]) in bL_switcher_disable()
651 pr_crit("%s: unable to restore original cluster for CPU %d\n", in bL_switcher_disable()