arm: omap: lttng: fix build breakage Fix compilation with lttng patches applied on omap. Signed-off-by: Felipe Balbi Index: linux-omap-2.6/arch/arm/mach-omap2/trace-clock.c =================================================================== --- linux-omap-2.6.orig/arch/arm/mach-omap2/trace-clock.c 2009-12-13 21:22:09.554137130 +0200 +++ linux-omap-2.6/arch/arm/mach-omap2/trace-clock.c 2009-12-13 21:31:59.482441303 +0200 @@ -12,12 +12,9 @@ #include #include #include -#include +#include #include -/* Need direct access to the clock from kernel/time/timekeeping.c */ -extern struct clocksource *clock; - /* 32KHz counter count save upon PM sleep */ static u32 saved_32k_count; static u64 saved_trace_clock; @@ -124,6 +121,7 @@ void _start_trace_clock(void) { + struct clocksource *clock = clocksource_default_clock(); unsigned long flags; unsigned int count_32k, count_trace_clock; u32 regval; @@ -149,7 +147,7 @@ */ ref_time = saved_trace_clock; local_irq_save(flags); - count_32k = clocksource_read(clock); + count_32k = clock->read(clock); prev_time = trace_clock_read64(); /* * Delta done on 32-bits, then casted to u64. Must guarantee @@ -190,7 +188,9 @@ void _stop_trace_clock(void) { - saved_32k_count = clocksource_read(clock); + struct clocksource *clock = clocksource_default_clock(); + + saved_32k_count = clock->read(clock); saved_trace_clock = trace_clock_read64(); del_timer_sync(&clear_ccnt_ms_timer); put_synthetic_tsc(); Index: linux-omap-2.6/arch/arm/plat-omap/include/mach/trace-clock.h =================================================================== --- linux-omap-2.6.orig/arch/arm/plat-omap/include/mach/trace-clock.h 2009-12-13 21:22:16.818137314 +0200 +++ linux-omap-2.6/arch/arm/plat-omap/include/mach/trace-clock.h 2009-12-13 21:36:09.926137740 +0200 @@ -9,7 +9,7 @@ #include #include -#include +#include /* * Number of hardware clock bits. The higher order bits are expected to be 0.