From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] ARM:PXA: Correct tick_to_time / us_to_tick to use lldiv
Date: Fri, 6 Dec 2013 02:15:57 +0100 [thread overview]
Message-ID: <201312060215.57769.marex@denx.de> (raw)
In-Reply-To: <1386272919-22615-3-git-send-email-trini@ti.com>
On Thursday, December 05, 2013 at 08:48:37 PM, Tom Rini wrote:
> Cc: Marek Vasut <marek.vasut@gmail.com>
> Signed-off-by: Tom Rini <trini@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
btw. how come you still CC this old address ? ;-)
> ---
> arch/arm/cpu/pxa/timer.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/cpu/pxa/timer.c b/arch/arm/cpu/pxa/timer.c
> index 78d9f32..c4717de 100644
> --- a/arch/arm/cpu/pxa/timer.c
> +++ b/arch/arm/cpu/pxa/timer.c
> @@ -28,12 +28,12 @@ DECLARE_GLOBAL_DATA_PTR;
>
> static unsigned long long tick_to_time(unsigned long long tick)
> {
> - return tick * CONFIG_SYS_HZ / TIMER_FREQ_HZ;
> + return lldiv(tick * CONFIG_SYS_HZ, TIMER_FREQ_HZ);
> }
>
> static unsigned long long us_to_tick(unsigned long long us)
> {
> - return (us * TIMER_FREQ_HZ) / 1000000;
> + return lldiv(us * TIMER_FREQ_HZ, 1000000);
> }
>
> int timer_init(void)
Best regards,
Marek Vasut
next prev parent reply other threads:[~2013-12-06 1:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-05 19:48 [U-Boot] [PATCH 1/5] ARM:rmobile: Correct get_time_ms / get_time_us to use lldiv Tom Rini
2013-12-05 19:48 ` [U-Boot] [PATCH 2/5] ARM:zynq: Correct __udelay " Tom Rini
2013-12-16 14:16 ` [U-Boot] [U-Boot,2/5] " Tom Rini
2013-12-05 19:48 ` [U-Boot] [PATCH 3/5] ARM:PXA: Correct tick_to_time / us_to_tick " Tom Rini
2013-12-06 1:15 ` Marek Vasut [this message]
2013-12-16 14:16 ` [U-Boot] [U-Boot, " Tom Rini
2013-12-05 19:48 ` [U-Boot] [PATCH 4/5] JFFS2: Correct jffs2_1pass_build_lists " Tom Rini
2013-12-16 14:16 ` [U-Boot] [U-Boot, " Tom Rini
2013-12-05 19:48 ` [U-Boot] [PATCH 5/5] yaffs2: Use lldiv for 64bit division Tom Rini
2013-12-16 14:16 ` [U-Boot] [U-Boot,5/5] " Tom Rini
2013-12-06 0:31 ` [U-Boot] [PATCH 1/5] ARM:rmobile: Correct get_time_ms / get_time_us to use lldiv Nobuhiro Iwamatsu
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=201312060215.57769.marex@denx.de \
--to=marex@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.