Commit 145bc292 authored by Mark Brown's avatar Mark Brown Committed by Russell King

ARM: 7920/1: topology: Staticise non-exported symbols

These symbols are only referenced in this source file so can be made
static, and the efficiency table is constant data so can be declared as
such.  This avoids polluting the global namespace and fixes warnings
from sparse.

The function arch_scale_freq_power() is still not prototyped or static,
this is a separate issue as this is overriding a weak symbol from the
scheduler which neglects to provide a prototype.
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d46cda12
...@@ -68,16 +68,16 @@ struct cpu_efficiency { ...@@ -68,16 +68,16 @@ struct cpu_efficiency {
* Processors that are not defined in the table, * Processors that are not defined in the table,
* use the default SCHED_POWER_SCALE value for cpu_scale. * use the default SCHED_POWER_SCALE value for cpu_scale.
*/ */
struct cpu_efficiency table_efficiency[] = { static const struct cpu_efficiency table_efficiency[] = {
{"arm,cortex-a15", 3891}, {"arm,cortex-a15", 3891},
{"arm,cortex-a7", 2048}, {"arm,cortex-a7", 2048},
{NULL, }, {NULL, },
}; };
unsigned long *__cpu_capacity; static unsigned long *__cpu_capacity;
#define cpu_capacity(cpu) __cpu_capacity[cpu] #define cpu_capacity(cpu) __cpu_capacity[cpu]
unsigned long middle_capacity = 1; static unsigned long middle_capacity = 1;
/* /*
* Iterate all CPUs' descriptor in DT and compute the efficiency * Iterate all CPUs' descriptor in DT and compute the efficiency
...@@ -89,7 +89,7 @@ unsigned long middle_capacity = 1; ...@@ -89,7 +89,7 @@ unsigned long middle_capacity = 1;
*/ */
static void __init parse_dt_topology(void) static void __init parse_dt_topology(void)
{ {
struct cpu_efficiency *cpu_eff; const struct cpu_efficiency *cpu_eff;
struct device_node *cn = NULL; struct device_node *cn = NULL;
unsigned long min_capacity = (unsigned long)(-1); unsigned long min_capacity = (unsigned long)(-1);
unsigned long max_capacity = 0; unsigned long max_capacity = 0;
...@@ -158,7 +158,7 @@ static void __init parse_dt_topology(void) ...@@ -158,7 +158,7 @@ static void __init parse_dt_topology(void)
* boot. The update of all CPUs is in O(n^2) for heteregeneous system but the * boot. The update of all CPUs is in O(n^2) for heteregeneous system but the
* function returns directly for SMP system. * function returns directly for SMP system.
*/ */
void update_cpu_power(unsigned int cpu) static void update_cpu_power(unsigned int cpu)
{ {
if (!cpu_capacity(cpu)) if (!cpu_capacity(cpu))
return; return;
...@@ -185,7 +185,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu) ...@@ -185,7 +185,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu)
return &cpu_topology[cpu].core_sibling; return &cpu_topology[cpu].core_sibling;
} }
void update_siblings_masks(unsigned int cpuid) static void update_siblings_masks(unsigned int cpuid)
{ {
struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid];
int cpu; int 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