[PATCH] cpufreq: Remove unused parameter in cppc_perf_from_fbctrs()

BowenYu posted 1 patch 2 months, 1 week ago
drivers/cpufreq/cppc_cpufreq.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
[PATCH] cpufreq: Remove unused parameter in cppc_perf_from_fbctrs()
Posted by BowenYu 2 months, 1 week ago
Remove the unused parameter cppc_cpudata* cpu_data in 
cppc_perf_from_fbctrs().

Signed-off-by: BowenYu <yubowen8@huawei.com>
---
 drivers/cpufreq/cppc_cpufreq.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
index b7c688a5659c..c58e548ec491 100644
--- a/drivers/cpufreq/cppc_cpufreq.c
+++ b/drivers/cpufreq/cppc_cpufreq.c
@@ -58,8 +58,7 @@ struct cppc_freq_invariance {
 static DEFINE_PER_CPU(struct cppc_freq_invariance, cppc_freq_inv);
 static struct kthread_worker *kworker_fie;
 
-static int cppc_perf_from_fbctrs(struct cppc_cpudata *cpu_data,
-				 struct cppc_perf_fb_ctrs *fb_ctrs_t0,
+static int cppc_perf_from_fbctrs(struct cppc_perf_fb_ctrs *fb_ctrs_t0,
 				 struct cppc_perf_fb_ctrs *fb_ctrs_t1);
 
 /**
@@ -95,8 +94,7 @@ static void cppc_scale_freq_workfn(struct kthread_work *work)
 		return;
 	}
 
-	perf = cppc_perf_from_fbctrs(cpu_data, &cppc_fi->prev_perf_fb_ctrs,
-				     &fb_ctrs);
+	perf = cppc_perf_from_fbctrs(&cppc_fi->prev_perf_fb_ctrs, &fb_ctrs);
 	if (!perf)
 		return;
 
@@ -699,8 +697,7 @@ static inline u64 get_delta(u64 t1, u64 t0)
 	return (u32)t1 - (u32)t0;
 }
 
-static int cppc_perf_from_fbctrs(struct cppc_cpudata *cpu_data,
-				 struct cppc_perf_fb_ctrs *fb_ctrs_t0,
+static int cppc_perf_from_fbctrs(struct cppc_perf_fb_ctrs *fb_ctrs_t0,
 				 struct cppc_perf_fb_ctrs *fb_ctrs_t1)
 {
 	u64 delta_reference, delta_delivered;
@@ -762,8 +759,7 @@ static unsigned int cppc_cpufreq_get_rate(unsigned int cpu)
 			return 0;
 	}
 
-	delivered_perf = cppc_perf_from_fbctrs(cpu_data, &fb_ctrs_t0,
-					       &fb_ctrs_t1);
+	delivered_perf = cppc_perf_from_fbctrs(&fb_ctrs_t0, &fb_ctrs_t1);
 	if (!delivered_perf)
 		goto out_invalid_counters;
 
-- 
2.33.0
Re: [PATCH] cpufreq: Remove unused parameter in cppc_perf_from_fbctrs()
Posted by Viresh Kumar 1 month, 3 weeks ago
On 30-07-25, 11:06, BowenYu wrote:
> Remove the unused parameter cppc_cpudata* cpu_data in 
> cppc_perf_from_fbctrs().
> 
> Signed-off-by: BowenYu <yubowen8@huawei.com>
> ---
>  drivers/cpufreq/cppc_cpufreq.c | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)

Applied. Thanks.

-- 
viresh