diff options
author | Juri Lelli <juri.lelli@arm.com> | 2015-11-10 15:40:03 +0000 |
---|---|---|
committer | Juri Lelli <juri.lelli@arm.com> | 2015-11-10 15:40:03 +0000 |
commit | d47adb96ef6311d77b15eda46c96eca31e10bc19 (patch) | |
tree | 0dd4af003d87bbb9ad636c692d5fb757045da046 /arch/arm/kernel/topology.c | |
parent | b9ed5586638749771886164255c3259dc48eb4a2 (diff) |
sched/fair: move capacity_curr_of outside CONFIG_SMP
CONFIG_CPU_FREQ_GOV_SCHED configurations need to use capacity_curr_of; move
it outside CONFIG_SMP regions. Once we do that arch_scale_freq_capacity as
to be changed as well, because struct sched_domain is not defined on
!CONFIG_SMP. Luckily, sd parameter is not used anywhere in that function,
so we can simply clean it up.
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Diffstat (limited to 'arch/arm/kernel/topology.c')
-rw-r--r-- | arch/arm/kernel/topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index da450709eaa9..d825c024a674 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -158,7 +158,7 @@ static void update_cpu_capacity(unsigned int cpu) * compensates for frequency scaling (arch_scale_freq_capacity()). The scaling * factor is updated in smp.c */ -unsigned long arm_arch_scale_freq_capacity(struct sched_domain *sd, int cpu) +unsigned long arm_arch_scale_freq_capacity(int cpu) { unsigned long curr = atomic_long_read(&per_cpu(cpu_freq_capacity, cpu)); |