]> git.sur5r.net Git - u-boot/blobdiff - cpu/arm1176/s3c64xx/interrupts.c
Fix e-mail address of Gary Jennejohn.
[u-boot] / cpu / arm1176 / s3c64xx / interrupts.c
index 8356ae49e4364d07727a97f8b0d89d190bcf0f1e..7bb98486c57e00bdd0c88b6d7925c04cf95ffb7c 100644 (file)
@@ -11,7 +11,7 @@
  * Alex Zuepke <azu@sysgo.de>
  *
  * (C) Copyright 2002-2004
- * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
+ * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  *
  * (C) Copyright 2004
  * Philippe Robin, ARM Ltd. <philippe.robin@arm.com>
@@ -41,6 +41,7 @@
 #include <common.h>
 #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 * CONFIG_SYS_HZ)));
+       return res;
 }
 
 ulong get_timer(ulong base)
@@ -158,7 +161,7 @@ ulong get_timer(ulong base)
 
 void set_timer(ulong t)
 {
-       timestamp = t * (timer_load_val / (100 * CFG_HZ));
+       timestamp = t * (timer_load_val / (100 * CONFIG_SYS_HZ));
 }
 
 void udelay(unsigned long usec)