cpufreq: cpufreq: export cpufreq cpu release and acquire
PATCH 10/12 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
@@ -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
Quoted 4 lines · Perry Yuan
cpufreq_cpu_release" and "cpufreq_cpu_acquire" are only used internally bydrivers/cpufreq/cpufreq.ccurrently.
Export them so that other drivers such as the AMD P-state driver can use them as well.
Can you provide more information on why this is needed for the amd-pstate driver?
This patch exports the acquire/release functions but I don't see that the amd-pstate driver is updated to use them.
-Nathan
Quoted 25 lines
Signed-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)drivers/cpufreq/cpufreq.c +2
-0@@ -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 *
[AMD Official Use Only - General]
Hi Nathon.
Quoted 23 lines
-----Original Message-----
From: Fontenot, Nathan <[email protected]>
Sent: Friday, July 8, 2022 3:40 AM
To: Yuan, Perry <[email protected]>; [email protected]; [email protected]; Huang, Ray <[email protected]>; Rafael J. Wysocki <[email protected]>; [email protected]; linux- [email protected]
Cc: 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]>
Subject: Re: [PATCH 10/12] cpufreq: cpufreq: export cpufreq cpu release and acquireQuoted 3 lines · Perry Yuan
cpufreq_cpu_release" and "cpufreq_cpu_acquire" are only used internally bydrivers/cpufreq/cpufreq.ccurrently.
Export them so that other drivers such as the AMD P-state driver can usethem as well.
Quoted 1 line
Quoted 7 lines
Can you provide more information on why this is needed for the amd- pstate driver?
This patch exports the acquire/release functions but I don't see that the amd-pstate driver is updated to use them.
-Nathan
It is used in the next CPPC EPP patch set which will be sent out soon.
As the amd-pstate is built as module driver, this patch exports the symbol to pstate driver.
Perry.
Quoted 30 lines
Quoted 20 lines
Signed-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)drivers/cpufreq/cpufreq.c +1
-0@@ -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.drivers/cpufreq/cpufreq.c struct cpufreq_policy · line 298
Quoted 7 lines
drivers/cpufreq/cpufreq.c +1
-0@@ -291,6 +292,7 @@ struct cpufreq_policy *cpufreq_cpu_acquire(unsigned int cpu)return policy; } +EXPORT_SYMBOL_GPL (cpufreq_cpu_acquire);/**************************************************************
*******Quoted 1 line
* EXTERNALLY AFFECTING FREQUENCY CHANGES *