From 751341db63c1d789199f2add040eab83fd74d57e Mon Sep 17 00:00:00 2001 From: Xiangwei Li Date: Wed, 8 Jan 2025 19:53:46 +0800 Subject: [PATCH] PM / devfreq: Delete invalid cluster information hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IBC4SJ -------------------------------- The information reported by ACPI does not contain the CPU cluster information, delete unnecessary logic. Signed-off-by: Xiangwei Li --- drivers/devfreq/hisi_uncore_freq.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/devfreq/hisi_uncore_freq.c b/drivers/devfreq/hisi_uncore_freq.c index 89af7aa9a095..f3c45c6f450a 100644 --- a/drivers/devfreq/hisi_uncore_freq.c +++ b/drivers/devfreq/hisi_uncore_freq.c @@ -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; } -- Gitee