Commit 99c73ce1 authored by Dietmar Eggemann's avatar Dietmar Eggemann Committed by Greg Kroah-Hartman

drivers base/arch_topology: Reformat topology_get_[cpu/freq]_scale() function name

The storage class and inline definition as well as the return type,
function name and parameter list fit all into one line.
Signed-off-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20200211181515.32570-3-dietmar.eggemann@arm.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e92a4eb4
...@@ -16,8 +16,7 @@ bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu); ...@@ -16,8 +16,7 @@ bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);
DECLARE_PER_CPU(unsigned long, cpu_scale); DECLARE_PER_CPU(unsigned long, cpu_scale);
static inline static inline unsigned long topology_get_cpu_scale(int cpu)
unsigned long topology_get_cpu_scale(int cpu)
{ {
return per_cpu(cpu_scale, cpu); return per_cpu(cpu_scale, cpu);
} }
...@@ -26,8 +25,7 @@ void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); ...@@ -26,8 +25,7 @@ void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity);
DECLARE_PER_CPU(unsigned long, freq_scale); DECLARE_PER_CPU(unsigned long, freq_scale);
static inline static inline unsigned long topology_get_freq_scale(int cpu)
unsigned long topology_get_freq_scale(int cpu)
{ {
return per_cpu(freq_scale, cpu); return per_cpu(freq_scale, cpu);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment