* [PATCH] latency tracer support for ARM ep93xx platform
@ 2006-11-01 14:51 Luotao Fu
0 siblings, 0 replies; only message in thread
From: Luotao Fu @ 2006-11-01 14:51 UTC (permalink / raw)
To: mingo; +Cc: linux-kernel, tglx, Robert Schwebel
[-- Attachment #1.1: Type: text/plain, Size: 417 bytes --]
Hi,
the following patch adds hardware support for the latency tracer in -rt
patch on ARM ep93xx platform.
regards
Luotao Fu
--
Dipl.-Ing. Luotao Fu | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
[-- Attachment #1.2: ep93xx_latencytrace.diff --]
[-- Type: text/plain, Size: 697 bytes --]
Adds latency tracer support for ep93xx platform.
Signed-off-by: Luotao Fu <lfu@pengutronix.de>
Index: linux-2.6.18-rt.sec/include/asm-arm/arch-ep93xx/timex.h
===================================================================
--- include/asm-arm/arch-ep93xx/timex.h
+++ include/asm-arm/arch-ep93xx/timex.h
@@ -3,3 +3,10 @@
*/
#define CLOCK_TICK_RATE 983040
+
+#include <asm/io.h>
+#include <asm-arm/arch-ep93xx/ep93xx-regs.h>
+
+#define mach_read_cycles() readl(EP93XX_TIMER4_VALUE_LOW)
+#define mach_cycles_to_usecs(d) (((d) * ((1000000LL << 32) / CLOCK_TICK_RATE)) >> 32)
+#define mach_usecs_to_cycles(d) (((d) * (((long long)CLOCK_TICK_RATE << 32) / 1000000)) >> 32)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-01 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-01 14:51 [PATCH] latency tracer support for ARM ep93xx platform Luotao Fu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®