[PATCH 33/40] ARM: tegra: convert sched_clock() to use new infrastructure

Olof Johansson olof at lixom.net
Wed Dec 22 02:23:58 EST 2010


Hi,

On Fri, Dec 17, 2010 at 3:49 AM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> Convert tegra to use the new sched_clock() infrastructure for extending
> 32bit counters to full 64-bit nanoseconds.
>
> Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
> ---
>  arch/arm/Kconfig            |    1 +
>  arch/arm/mach-tegra/timer.c |   22 ++++++++++++++++++++--
>  2 files changed, 21 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 0e1a966..ec7b027 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -570,6 +570,7 @@ config ARCH_TEGRA
>        select GENERIC_CLOCKEVENTS
>        select GENERIC_GPIO
>        select HAVE_CLK
> +       select HAVE_SCHED_CLOCK
>        select COMMON_CLKDEV
>        select ARCH_HAS_BARRIERS if CACHE_L2X0
>        select ARCH_HAS_CPUFREQ
> diff --git a/arch/arm/mach-tegra/timer.c b/arch/arm/mach-tegra/timer.c
> index c52bd84..b5f86dd 100644
> --- a/arch/arm/mach-tegra/timer.c
> +++ b/arch/arm/mach-tegra/timer.c
> @@ -26,7 +26,6 @@
>  #include <linux/clocksource.h>
>  #include <linux/clk.h>
>  #include <linux/io.h>
> -#include <linux/cnt32_to_63.h>
>
>  #include <asm/mach/time.h>
>  #include <asm/localtimer.h>


This needs:

#include <asm/sched_clock.h>

(for DEFINE_CLOCK_DATA and other declarations)


-Olof



More information about the linux-arm-kernel mailing list