Lines Matching refs:cluster

1103     struct sched_cluster *cluster;
2785 static inline int cluster_first_cpu(struct sched_cluster *cluster)
2787 return cpumask_first(&cluster->cpus);
2793 #define for_each_sched_cluster(cluster) list_for_each_entry_rcu(cluster, &cluster_head, list)
2858 return cpu_rq(cpu)->cluster->capacity;
2863 return cpu_rq(cpu)->cluster->max_possible_capacity;
2868 return cpu_rq(cpu)->cluster->load_scale_factor;
2871 static inline unsigned int cluster_max_freq(struct sched_cluster *cluster)
2875 * voting. So struct cluster saves both and return min() for current
2876 * cluster fmax.
2878 return cluster->max_freq;
2905 static inline unsigned long load_scale_cpu_efficiency(struct sched_cluster *cluster)
2907 return DIV_ROUND_UP(CPU_FREQ_1K * max_possible_efficiency, cluster->efficiency);
2915 static inline unsigned long load_scale_cpu_freq(struct sched_cluster *cluster)
2917 return DIV_ROUND_UP(CPU_FREQ_1K * max_possible_freq, cluster_max_freq(cluster));
2920 static inline int compute_load_scale_factor(struct sched_cluster *cluster)
2930 load_scale *= load_scale_cpu_efficiency(cluster);
2933 load_scale *= load_scale_cpu_freq(cluster);
2953 static unsigned long capacity_scale_cpu_efficiency(struct sched_cluster *cluster)
2955 return (0x400 * cluster->efficiency) / min_possible_efficiency;
2962 static unsigned long capacity_scale_cpu_freq(struct sched_cluster *cluster)
2964 return (0x400 * cluster_max_freq(cluster)) / min_max_freq;
2967 static inline int compute_capacity(struct sched_cluster *cluster)
2971 capacity *= capacity_scale_cpu_efficiency(cluster);
2974 capacity *= capacity_scale_cpu_freq(cluster);