>From 05490dbf7593744782322e98fda9f03c3ad2fb1f Mon Sep 17 00:00:00 2001
From: Steve Muckle <smuckle@linaro.org>
Date: Wed, 4 May 2016 18:56:45 -0700
Subject: [PATCH] arm: fix compile error in topology.h

Commit "arm: Update arch_scale_cpu_capacity() to reflect change to
define" introduced a dependency on struct sched_domain in
arch/arm/include/asm/topologoy.h, but that structure is only currently
defined if CONFIG_CPU_FREQ is enabled, which causes
include/linux/cpufreq.h to get pulled in which defines it.

Include <linux/cpufreq.h> regardless of CONFIG_CPU_FREQ so struct
sched_domain is always defined.

Signed-off-by: Steve Muckle <smuckle@linaro.org>
---
 arch/arm/include/asm/topology.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/topology.h b/arch/arm/include/asm/topology.h
index e3e596cbb1a7..d06064120694 100644
--- a/arch/arm/include/asm/topology.h
+++ b/arch/arm/include/asm/topology.h
@@ -3,6 +3,7 @@

 #ifdef CONFIG_ARM_CPU_TOPOLOGY

+#include <linux/cpufreq.h>
 #include <linux/cpumask.h>

 struct cputopo_arm {
@@ -25,7 +26,6 @@ void store_cpu_topology(unsigned int cpuid);
 const struct cpumask *cpu_coregroup_mask(int cpu);

 #ifdef CONFIG_CPU_FREQ
-#include <linux/cpufreq.h>
 #define arch_scale_freq_capacity cpufreq_scale_freq_capacity
 #endif
 #define arch_scale_cpu_capacity scale_cpu_capacity
--
2.4.10

