mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luotao Fu <l.fu@pengutronix.de>
To: mingo@elte.hu
Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de,
	Robert Schwebel <r.schwebel@pengutronix.de>
Subject: [PATCH] latency tracer support for ARM ep93xx platform
Date: Wed, 1 Nov 2006 15:51:00 +0100	[thread overview]
Message-ID: <20061101145100.GB25890@localhost.localdomain> (raw)


[-- 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 --]

                 reply	other threads:[~2006-11-01 14:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061101145100.GB25890@localhost.localdomain \
    --to=l.fu@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=r.schwebel@pengutronix.de \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®