From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] Fix the timer to 1msec and CONFIG_SYS_HZ to 1000.
Date: Fri, 13 Mar 2009 08:53:43 +0100 [thread overview]
Message-ID: <200903130853.43849.sr@denx.de> (raw)
In-Reply-To: <1236930510-25585-1-git-send-email-mani.pillai@ti.com>
On Friday 13 March 2009, Manikandan Pillai wrote:
> Signed-off-by: Manikandan Pillai <mani.pillai@ti.com>
> ---
> cpu/arm_cortexa8/omap3/interrupts.c | 6 ++++++
> include/configs/omap3_evm.h | 2 +-
> 2 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/cpu/arm_cortexa8/omap3/interrupts.c
> b/cpu/arm_cortexa8/omap3/interrupts.c index 9e9817d..c415dbb 100644
> --- a/cpu/arm_cortexa8/omap3/interrupts.c
> +++ b/cpu/arm_cortexa8/omap3/interrupts.c
> @@ -234,10 +234,15 @@ void reset_timer_masked(void)
> /* reset time, capture current incrementer value time */
> lastinc = readl(&timer_base->tcrr);
> timestamp = 0; /* start "advancing" time stamp from 0 */
> + /* reset the timer count */
> + writel(0x1, &timer_base->ttgr);
> }
>
> ulong get_timer_masked(void)
> {
> +#if 1
> + return readl(&timer_base->tcrr) >> 5; /* current tick value */
> +#else
> ulong now = readl(&timer_base->tcrr); /* current tick value */
>
> if (now >= lastinc) /* normal mode (non roll) */
> @@ -247,6 +252,7 @@ ulong get_timer_masked(void)
> timestamp += (0xFFFFFFFF - lastinc) + now;
> lastinc = now;
> return timestamp;
> +#endif
Please remove the dead code.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2009-03-13 7:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 7:48 [U-Boot] [PATCH 1/1] Fix the timer to 1msec and CONFIG_SYS_HZ to 1000 Manikandan Pillai
2009-03-13 7:53 ` Stefan Roese [this message]
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=200903130853.43849.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.