drivers base/arch_topology: Remove 'struct sched_domain' forward declaration
PATCH 1/1 drivers base/arch_topology: Remove 'struct sched_domain' forward declaration
The sched domain pointer argument from topology_get_freq_scale() and topology_get_cpu_scale() got removed by commit 7673c8a4c75d ("sched/cpufreq: Remove arch_scale_freq_capacity()'s 'sd' parameter") and commit 8ec59c0f5f49 ("sched/topology: Remove unused 'sd' parameter from arch_scale_cpu_capacity()").
So the 'struct sched_domain' forward declaration is no longer needed. Remove it.
W/o the sched domain pointer argument the storage class and inline definition as well as the return type, function name and parameter list fit all into one line.
--- include/linux/arch_topology.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
include/linux/arch_topology.h +2 -5
@@ -16,9 +16,7 @@ bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu); DECLARE_PER_CPU(unsigned long, cpu_scale); -struct sched_domain ; -static inline -unsigned long topology_get_cpu_scale (int cpu) +static inline unsigned long topology_get_cpu_scale (int cpu) {return per_cpu (cpu_scale, cpu); }
@@ -27,8 +25,7 @@ void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); DECLARE_PER_CPU(unsigned long, freq_scale); -static inline -unsigned long topology_get_freq_scale (int cpu) +static inline unsigned long topology_get_freq_scale (int cpu) {return per_cpu (freq_scale, cpu); }
Signature · 1 line
2.17.1
Quoted 6 lines · Dietmar Eggemann
The sched domain pointer argument from
topology_get_freq_scale()andtopology_get_cpu_scale()got removed by commit7673c8a4c75d("sched/cpufreq: Remove arch_scale_freq_capacity()'s 'sd' parameter") and commit8ec59c0f5f49("sched/topology: Remove unused 'sd' parameter fromarch_scale_cpu_capacity()").
Quoted 6 lines
So the 'struct
sched_domain' forward declaration is no longer needed. Remove it.W/o the sched domain pointer argument the storage class and inline definition as well as the return type, function name and parameter list fit all into one line.
Looks simple and good to me. I don't want to ask you split the patch as $subject indicates only one of the 2 changes in the patch. I am fine with it as it but if anyone else shout for that, go for the split.
Either way,
You have not added Greg who generally picks up the patch. Can you repost with him in cc and my reviewed-by so that he can pick it up.
--
Regards,
Sudeep
Quoted 18 lines · Sudeep Holla
Quoted 6 lines · Dietmar Eggemann
The sched domain pointer argument from
topology_get_freq_scale()andtopology_get_cpu_scale()got removed by commit7673c8a4c75d("sched/cpufreq: Remove arch_scale_freq_capacity()'s 'sd' parameter") and commit8ec59c0f5f49("sched/topology: Remove unused 'sd' parameter fromarch_scale_cpu_capacity()").Quoted 6 lines
So the 'struct
sched_domain' forward declaration is no longer needed. Remove it.W/o the sched domain pointer argument the storage class and inline definition as well as the return type, function name and parameter list fit all into one line.
Looks simple and good to me. I don't want to ask you split the patch as $subject indicates only one of the 2 changes in the patch. I am fine with it as it but if anyone else shout for that, go for the split.
Quoted 6 lines
Either way,
Reviewed-by Sudeep Holla <[email protected]>You have not added Greg who generally picks up the patch. Can you repost with him in cc and my reviewed-by so that he can pick it up.
Will do. I'll keep the patch like it is. Thanks for the review!