Skip to content

Commit 99c73ce

Browse files
deggemangregkh
authored andcommitted
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: Dietmar Eggemann <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e92a4eb commit 99c73ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/linux/arch_topology.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);
1616

1717
DECLARE_PER_CPU(unsigned long, cpu_scale);
1818

19-
static inline
20-
unsigned long topology_get_cpu_scale(int cpu)
19+
static inline unsigned long topology_get_cpu_scale(int cpu)
2120
{
2221
return per_cpu(cpu_scale, cpu);
2322
}
@@ -26,8 +25,7 @@ void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity);
2625

2726
DECLARE_PER_CPU(unsigned long, freq_scale);
2827

29-
static inline
30-
unsigned long topology_get_freq_scale(int cpu)
28+
static inline unsigned long topology_get_freq_scale(int cpu)
3129
{
3230
return per_cpu(freq_scale, cpu);
3331
}

0 commit comments

Comments
 (0)