From: Tony Lin Date: Fri, 23 Dec 2011 02:51:55 +0000 (+0800) Subject: ENGR00170922 [MX6Q]fix build error if disable SMP X-Git-Tag: v3.0.35-fsl~1719 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e23dd84f6e09e0b405b031a5d07648dbba11984d;p=karo-tx-linux.git ENGR00170922 [MX6Q]fix build error if disable SMP fail log: cpu_regulator-mx6.c: In function 'mx6_cpu_regulator_init': cpu_regulator-mx6.c:87: error: 'loops_per_jiffy' undeclared Signed-off-by: Tony Lin --- diff --git a/arch/arm/mach-mx6/cpu_regulator-mx6.c b/arch/arm/mach-mx6/cpu_regulator-mx6.c index f973c5ae4f9b..779ed62eea53 100644 --- a/arch/arm/mach-mx6/cpu_regulator-mx6.c +++ b/arch/arm/mach-mx6/cpu_regulator-mx6.c @@ -32,6 +32,8 @@ static int cpu_op_nr; static struct cpu_op *cpu_op_tbl; extern struct cpu_op *(*get_cpu_op)(int *op); +extern unsigned long loops_per_jiffy; + static inline unsigned long mx6_cpu_jiffies(unsigned long old, u_int div, u_int mult) {