Implement sparc64 trace clock. Signed-off-by: Mathieu Desnoyers CC: David Miller CC: linux-arch@vger.kernel.org --- arch/sparc/include/asm/trace-clock.h | 46 +++++++++++++++++++++++++++++++++++ arch/sparc64/Kconfig | 1 2 files changed, 47 insertions(+) Index: linux.trees.git/arch/sparc64/Kconfig =================================================================== --- linux.trees.git.orig/arch/sparc64/Kconfig 2008-11-07 00:09:35.000000000 -0500 +++ linux.trees.git/arch/sparc64/Kconfig 2008-11-07 00:12:26.000000000 -0500 @@ -16,6 +16,7 @@ config SPARC64 select HAVE_GET_CYCLES select HAVE_LMB select HAVE_ARCH_KGDB + select HAVE_TRACE_CLOCK select USE_GENERIC_SMP_HELPERS if SMP select HAVE_ARCH_TRACEHOOK select ARCH_WANT_OPTIONAL_GPIOLIB 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-07 00:12:04.000000000 -0500 @@ -0,0 +1,46 @@ +/* + * 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 void trace_clock_add_timestamp(unsigned long ticks) +{ } + +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/