Skip to contentSkip to conversation

cpufreq: cpufreq: export cpufreq cpu release and acquire

PATCH Superseded Perry Yuan 2 participants 5 messages Jul 9, 2022 – Jul 11, 2022 CPU frequency scaling framework

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Perry Yuan

author
#0 lore raw

PATCH v2 10/14 cpufreq: cpufreq: export cpufreq cpu release and acquire

"cpufreq_cpu_release" and "cpufreq_cpu_acquire" are only used internally by drivers/cpufreq/cpufreq.c currently.
Export them so that other drivers such as the AMD P-state driver can use them as well.

---
 drivers/cpufreq/cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/cpufreq/cpufreq.c +2 -0
index 73432360e6e9..4d3c83da29b7 100644
@@ -262,6 +262,7 @@ void cpufreq_cpu_release(struct cpufreq_policy *policy)
 
 	cpufreq_cpu_put(policy);
 }
+EXPORT_SYMBOL_GPL(cpufreq_cpu_release);
 
 /**
  * cpufreq_cpu_acquire - Find policy for a CPU, mark it as busy and lock it.
@@ -291,6 +292,7 @@ struct cpufreq_policy *cpufreq_cpu_acquire(unsigned int cpu)
 
 	return policy;
 }
+EXPORT_SYMBOL_GPL(cpufreq_cpu_acquire);
 
 /*********************************************************************
  *            EXTERNALLY AFFECTING FREQUENCY CHANGES                 *
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 3 lines · Perry Yuan

"cpufreq_cpu_release" and "cpufreq_cpu_acquire" are only used internally by drivers/cpufreq/cpufreq.c currently.
Export them so that other drivers such as the AMD P-state driver can use them as well.

I don't see your driver using them, what am I missing ?

Signature · 1 line
viresh
#2 lore raw

[AMD Official Use Only - General]

Hi Viresh:

Quoted 21 lines

-----Original Message-----
From: Viresh Kumar <[email protected]>
Sent: Monday, July 11, 2022 8:40 AM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Huang, Ray <[email protected]>; Sharma, Deepak <[email protected]>; Limonciello, Mario <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Su, Jinzhou (Joe) <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH v2 10/14] cpufreq: cpufreq: export cpufreq cpu release and acquire

[CAUTION: External Email]

Quoted 3 lines · Perry Yuan

"cpufreq_cpu_release" and "cpufreq_cpu_acquire" are only used internally by drivers/cpufreq/cpufreq.c currently.
Export them so that other drivers such as the AMD P-state driver can use

Quoted 6 lines

them as well.

I don't see your driver using them, what am I missing ?

--
viresh

The amd-pstate for EPP mode is under testing, I will push that patchset in a few days for reviewing. If this patch makes confusing, maybe I need to move this patch to coming patchset.

Perry.

maintainer
#3 lore raw
Quoted 2 lines · Perry

The amd-pstate for EPP mode is under testing, I will push that patchset in a few days for reviewing. If this patch makes confusing, maybe I need to move this patch to coming patchset.

Yeah, it should come with users and not like this.

Signature · 1 line
viresh
#4 lore raw

[AMD Official Use Only - General]

Hi Viresh,

Quoted 19 lines

-----Original Message-----
From: Viresh Kumar <[email protected]>
Sent: Monday, July 11, 2022 9:40 AM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Huang, Ray <[email protected]>; Sharma, Deepak <[email protected]>; Limonciello, Mario <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Su, Jinzhou (Joe) <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH v2 10/14] cpufreq: cpufreq: export cpufreq cpu release and acquire

[CAUTION: External Email]

Quoted 1 line · Perry

The amd-pstate for EPP mode is under testing, I will push that patchset in

Quoted 8 lines

a few days for reviewing.

Quoted 1 line

If this patch makes confusing, maybe I need to move this patch to coming

patchset.

Yeah, it should come with users and not like this.

--
viresh

Thanks a lot for your feedback
Will remove this patch from current patchset in V3.

Perry.