From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754647Ab2HWCMy (ORCPT ); Wed, 22 Aug 2012 22:12:54 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:41026 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138Ab2HWCMw (ORCPT ); Wed, 22 Aug 2012 22:12:52 -0400 Date: Thu, 23 Aug 2012 10:13:21 +0800 From: Shawn Guo To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Russell King , linux-kernel@vger.kernel.org, Sascha Hauer , Yong Shen , Shawn Guo , stable@vger.kernel.org Subject: Re: [PATCH 5/6] ARM: imx: select CPU_FREQ_TABLE when needed Message-ID: <20120823021318.GC24242@S2101-09.ap.freescale.net> References: <1345648390-4234-1-git-send-email-arnd@arndb.de> <1345648390-4234-6-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1345648390-4234-6-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 22, 2012 at 05:13:09PM +0200, Arnd Bergmann wrote: > The i.MX cpufreq implementation uses the CPU_FREQ_TABLE helpers, > so it needs to select that code to be built. This problem has > apparently existed since the i.MX cpufreq code was first merged > in v3.6.37. > s/v3.6.37/v2.6.37? Otherwise, Acked-by: Shawn Guo > Building IMX without CPU_FREQ_TABLE results in: > > arch/arm/plat-mxc/built-in.o: In function `mxc_cpufreq_exit': > arch/arm/plat-mxc/cpufreq.c:173: undefined reference to `cpufreq_frequency_table_put_attr' > arch/arm/plat-mxc/built-in.o: In function `mxc_set_target': > arch/arm/plat-mxc/cpufreq.c:84: undefined reference to `cpufreq_frequency_table_target' > arch/arm/plat-mxc/built-in.o: In function `mxc_verify_speed': > arch/arm/plat-mxc/cpufreq.c:65: undefined reference to `cpufreq_frequency_table_verify' > arch/arm/plat-mxc/built-in.o: In function `mxc_cpufreq_init': > arch/arm/plat-mxc/cpufreq.c:154: undefined reference to `cpufreq_frequency_table_cpuinfo' > arch/arm/plat-mxc/cpufreq.c:162: undefined reference to `cpufreq_frequency_table_get_attr' > > Signed-off-by: Arnd Bergmann > Cc: Sascha Hauer > Cc: Yong Shen > Cc: Shawn Guo > Cc: stable@vger.kernel.org > --- > arch/arm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index e91c7cd..84b5a0c 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -2150,6 +2150,7 @@ source "drivers/cpufreq/Kconfig" > config CPU_FREQ_IMX > tristate "CPUfreq driver for i.MX CPUs" > depends on ARCH_MXC && CPU_FREQ > + select CPU_FREQ_TABLE > help > This enables the CPUfreq driver for i.MX CPUs. > > -- > 1.7.10 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/