patch-2.4.21 linux-2.4.21/include/asm-sparc64/timex.h
Next file: linux-2.4.21/include/asm-sparc64/ttable.h
Previous file: linux-2.4.21/include/asm-sparc64/timer.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-sparc64/timex.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/asm-sparc64/timex.h linux-2.4.21/include/asm-sparc64/timex.h
@@ -6,6 +6,8 @@
#ifndef _ASMsparc64_TIMEX_H
#define _ASMsparc64_TIMEX_H
+#include <asm/timer.h>
+
#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
#define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
@@ -14,11 +16,7 @@
/* Getting on the cycle counter on sparc64. */
typedef unsigned long cycles_t;
-#define get_cycles() \
-({ cycles_t ret; \
- __asm__ __volatile__("rd %%tick, %0" : "=r" (ret)); \
- ret; \
-})
+#define get_cycles() tick_ops->get_tick()
#define vxtime_lock() do {} while (0)
#define vxtime_unlock() do {} while (0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)