Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for long long.

2008-11-02 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:00 Wed 22 Oct , Wolfgang Denk wrote: From: Sergei Poselenov [EMAIL PROTECTED] Also make sure to feed the right compiler options. Signed-off-by: Sergei Poselenov [EMAIL PROTECTED] Signed-off-by: Wolfgang Denk [EMAIL PROTECTED] --- These changes are needed with some more recent

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for long long.

2008-10-24 Thread Jean-Christophe PLAGNIOL-VILLARD
#include asm/proc-armv/ptrace.h #include s3c6400.h +#include div64.h static ulong timer_load_val; @@ -148,7 +149,9 @@ void reset_timer(void) ulong get_timer_masked(void) { - return get_ticks() / (timer_load_val / (100 * CFG_HZ)); + unsigned long long res =

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for long long.

2008-10-24 Thread Wolfgang Denk
Dear Jean-Christophe PLAGNIOL-VILLARD, In message [EMAIL PROTECTED] you wrote: ... CFG_HZ was renamed CONFIG_SYS_HZ ... I've start to think to re-rename it CFG_HZ as done in Linux, normaly this value is the same for all arch board Mind that there is a slight difference in meaning and

Re: [U-Boot] [PATCH] ARM: Use do_div() instead of division for long long

2008-09-08 Thread Gururaja Hebbar K R
Hmm, Interestingly i had sent a patch for the same for both integrator[ap/cp]. http://article.gmane.org/gmane.comp.boot-loaders.u-boot/46044. i had sent it to Jean-Christophe PLAGNIOL-VILLARD Peter Pearse also to U-Boot user list. Don't know y it didn't reach there. Regards Gururaja