>  #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 = get_ticks();
> +     do_div (res, (timer_load_val / (100 * CFG_HZ)));
> +     return res;
        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

Best Regards,
J.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to