Unverified Commit f943fb92 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14781 PM / devfreq: Delete invalid cluster information

Merge Pull Request from: @li-wei2110 
 
The information reported by ACPI does not contain the CPU cluster
information, delete unnecessary logic. 
 
Link:https://gitee.com/openeuler/kernel/pulls/14781 
parents b8d07012 751341db
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -414,16 +414,6 @@ static struct cpumask *get_package_cpumask(int cpu)
	return topology_core_cpumask(cpu);
}

static int get_cluster_id(int cpu)
{
	return topology_cluster_id(cpu);
}

static struct cpumask *get_cluster_cpumask(int cpu)
{
	return topology_cluster_cpumask(cpu);
}

static int hisi_uncore_mark_related_cpus_wrap(struct hisi_uncore_freq *uncore)
{
	int rc;
@@ -433,12 +423,6 @@ static int hisi_uncore_mark_related_cpus_wrap(struct hisi_uncore_freq *uncore)
	rc = hisi_uncore_mark_related_cpus(uncore, "related-package",
					   get_package_id,
					   get_package_cpumask);
	if (rc == 0)
		return rc;

	rc = hisi_uncore_mark_related_cpus(uncore, "related-cluster",
					   get_cluster_id,
					   get_cluster_cpumask);
	return rc;
}