Lines Matching defs: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;
288 cluster = t->wanted_cluster;
295 if (cluster != -1) {
296 bL_switch_to(cluster);
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;
429 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1);
430 if (cluster >= 2) {
431 pr_err("%s: only dual cluster systems are supported\n", __func__);
436 mask |= (1 << cluster);
445 * from a different cluster. To get a uniform scheduling behavior
447 * we'll use logical CPUs initially belonging to the same cluster.
454 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1);
456 cluster_0 = cluster;
457 if (cluster != cluster_0)
461 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(j), 1);
468 if (cluster != cluster_0)
485 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1);
494 bL_gic_id[cpu][cluster] = gic_id;
495 pr_info("GIC ID for CPU %u cluster %u is %u\n",
496 cpu, cluster, gic_id);
499 bL_switcher_cpu_original_cluster[i] = cluster;
604 unsigned int cpu, cluster;
624 * Then, if the final cluster for given logical CPU is not the
637 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(cpu), 1);
638 if (cluster == bL_switcher_cpu_original_cluster[cpu])
646 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(cpu), 1);
647 if (cluster == bL_switcher_cpu_original_cluster[cpu])
651 pr_crit("%s: unable to restore original cluster for CPU %d\n",