Implement sparc64 trace clock. Signed-off-by: Mathieu Desnoyers Acked-by: David S. Miller CC: linux-arch@vger.kernel.org --- arch/sparc/include/asm/trace-clock.h | 43 +++++++++++++++++++++++++++++++++++ arch/sparc64/Kconfig | 1 2 files changed, 44 insertions(+) Index: linux.trees.git/arch/sparc64/Kconfig =================================================================== --- linux.trees.git.orig/arch/sparc64/Kconfig 2008-11-26 06:48:52.000000000 -0500 +++ linux.trees.git/arch/sparc64/Kconfig 2008-11-26 06:52:21.000000000 -0500 @@ -18,6 +18,7 @@ config SPARC64 select HAVE_ARCH_KGDB select USE_GENERIC_SMP_HELPERS if SMP select HAVE_ARCH_TRACEHOOK + select HAVE_TRACE_CLOCK select ARCH_WANT_OPTIONAL_GPIOLIB select RTC_CLASS select RTC_DRV_M48T59 Index: linux.trees.git/arch/sparc/include/asm/trace-clock.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux.trees.git/arch/sparc/include/asm/trace-clock.h 2008-11-26 06:52:02.000000000 -0500 @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2008, Mathieu Desnoyers + * + * Trace clock definitions for Sparc64. + */ + +#ifndef _ASM_SPARC_TRACE_CLOCK_H +#define _ASM_SPARC_TRACE_CLOCK_H + +#include + +static inline u32 trace_clock_read32(void) +{ + return get_cycles(); +} + +static inline u64 trace_clock_read64(void) +{ + return get_cycles(); +} + +static inline unsigned int trace_clock_frequency(void) +{ + return get_cycles_rate(); +} + +static inline u32 trace_clock_freq_scale(void) +{ + return 1; +} + +static inline void get_trace_clock(void) +{ +} + +static inline void put_trace_clock(void) +{ +} + +static inline void set_trace_clock_is_sync(int state) +{ +} +#endif /* _ASM_SPARC_TRACE_CLOCK_H */ -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -- 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/