[ltt-dev] [PATCH 3/3] ltt: remove changes in get_cycle

Giuseppe CAVALLARO peppe.cavallaro at st.com
Tue Apr 6 10:20:23 EDT 2010


This patch removes a broken get_cycle implementation and
restores the original code.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro at st.com>
---
 arch/sh/include/asm/timex.h |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/arch/sh/include/asm/timex.h b/arch/sh/include/asm/timex.h
index 5249bee..18bf06d 100644
--- a/arch/sh/include/asm/timex.h
+++ b/arch/sh/include/asm/timex.h
@@ -12,8 +12,6 @@
  * can be used for accurately setting CLOCK_TICK_RATE, otherwise we
  * simply fall back on the i8253 PIT value.
  */
-
-#if 0
 #ifdef CONFIG_SH_PCLK_FREQ
 #define CLOCK_TICK_RATE		(CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */
 #else
@@ -21,18 +19,5 @@
 #endif
 
 #include <asm-generic/timex.h>
-#endif //0
-
-#include <linux/io.h>
-#include <cpu/timer.h>
-
-#define CLOCK_TICK_RATE               (HZ * 100000UL)
-
-typedef unsigned long long cycles_t;
-
-static __inline__ cycles_t get_cycles (void)
-{
-	return 0xffffffff - ctrl_inl(TMU1_TCNT);
-}
 
 #endif /* __ASM_SH_TIMEX_H */
-- 
1.6.0.4





More information about the lttng-dev mailing list