From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 6 Dec 2013 02:15:57 +0100 Subject: [U-Boot] [PATCH 3/5] ARM:PXA: Correct tick_to_time / us_to_tick to use lldiv In-Reply-To: <1386272919-22615-3-git-send-email-trini@ti.com> References: <1386272919-22615-1-git-send-email-trini@ti.com> <1386272919-22615-3-git-send-email-trini@ti.com> Message-ID: <201312060215.57769.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday, December 05, 2013 at 08:48:37 PM, Tom Rini wrote: > Cc: Marek Vasut > Signed-off-by: Tom Rini Acked-by: Marek Vasut 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