Lines Matching refs:cluster

46 #define ACTUAL_FREQ(cluster, freq)  ((cluster == A7_CLUSTER) ? freq << 1 : freq)  argument
47 #define VIRT_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq >> 1 : freq) argument
72 static unsigned int find_cluster_maxfreq(int cluster) in find_cluster_maxfreq() argument
80 if (cluster == per_cpu(physical_cluster, j) && in find_cluster_maxfreq()
283 u32 cluster = raw_cpu_to_cluster(cpu_dev->id); in _put_cluster_clk_and_freq_table() local
285 if (!freq_table[cluster]) in _put_cluster_clk_and_freq_table()
288 clk_put(clk[cluster]); in _put_cluster_clk_and_freq_table()
289 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in _put_cluster_clk_and_freq_table()
295 u32 cluster = cpu_to_cluster(cpu_dev->id); in put_cluster_clk_and_freq_table() local
298 if (atomic_dec_return(&cluster_usage[cluster])) in put_cluster_clk_and_freq_table()
301 if (cluster < MAX_CLUSTERS) in put_cluster_clk_and_freq_table()
314 kfree(freq_table[cluster]); in put_cluster_clk_and_freq_table()
320 u32 cluster = raw_cpu_to_cluster(cpu_dev->id); in _get_cluster_clk_and_freq_table() local
323 if (freq_table[cluster]) in _get_cluster_clk_and_freq_table()
334 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table[cluster]); in _get_cluster_clk_and_freq_table()
338 clk[cluster] = clk_get(cpu_dev, NULL); in _get_cluster_clk_and_freq_table()
339 if (!IS_ERR(clk[cluster])) in _get_cluster_clk_and_freq_table()
343 __func__, cpu_dev->id, cluster); in _get_cluster_clk_and_freq_table()
344 ret = PTR_ERR(clk[cluster]); in _get_cluster_clk_and_freq_table()
345 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in _get_cluster_clk_and_freq_table()
349 cluster); in _get_cluster_clk_and_freq_table()
356 u32 cluster = cpu_to_cluster(cpu_dev->id); in get_cluster_clk_and_freq_table() local
359 if (atomic_inc_return(&cluster_usage[cluster]) != 1) in get_cluster_clk_and_freq_table()
362 if (cluster < MAX_CLUSTERS) { in get_cluster_clk_and_freq_table()
365 atomic_dec(&cluster_usage[cluster]); in get_cluster_clk_and_freq_table()
405 atomic_dec(&cluster_usage[cluster]); in get_cluster_clk_and_freq_table()