Revert "cpufreq: tegra186: Share policy per cluster"
This reverts commitac64f0e893
which is upstream commit be4ae8c19492cd6d5de61ccb34ffb3f5ede5eec8. This commit is causing a suspend regression on Tegra186 Jetson TX2 with Linux v6.12.y kernels. This is not seen with Linux v6.15 that includes this change but indicates that there are there changes missing. Therefore, revert this change. Fixes:ac64f0e893
("cpufreq: tegra186: Share policy per cluster") Link: https://lore.kernel.org/linux-tegra/bf1dabf7-0337-40e9-8b8e-4e93a0ffd4cc@nvidia.com/ Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
eb74c6f1b2
commit
cc77844d61
@@ -73,18 +73,11 @@ static int tegra186_cpufreq_init(struct cpufreq_policy *policy)
|
|||||||
{
|
{
|
||||||
struct tegra186_cpufreq_data *data = cpufreq_get_driver_data();
|
struct tegra186_cpufreq_data *data = cpufreq_get_driver_data();
|
||||||
unsigned int cluster = data->cpus[policy->cpu].bpmp_cluster_id;
|
unsigned int cluster = data->cpus[policy->cpu].bpmp_cluster_id;
|
||||||
u32 cpu;
|
|
||||||
|
|
||||||
policy->freq_table = data->clusters[cluster].table;
|
policy->freq_table = data->clusters[cluster].table;
|
||||||
policy->cpuinfo.transition_latency = 300 * 1000;
|
policy->cpuinfo.transition_latency = 300 * 1000;
|
||||||
policy->driver_data = NULL;
|
policy->driver_data = NULL;
|
||||||
|
|
||||||
/* set same policy for all cpus in a cluster */
|
|
||||||
for (cpu = 0; cpu < ARRAY_SIZE(tegra186_cpus); cpu++) {
|
|
||||||
if (data->cpus[cpu].bpmp_cluster_id == cluster)
|
|
||||||
cpumask_set_cpu(cpu, policy->cpus);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user