X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cpu%2Fat32ap%2Finterrupts.c;h=75cc39e94c33eb02684efd845500df0458d98c0e;hb=4ace2823bc1fcc96874069a9a8c0821ff4f95f5d;hp=160838eeeb3b1d3d12e36fb67f911b3ae1b95547;hpb=e44f3ea4e801d37ef293284cb57b9637382f211a;p=oweals%2Fu-boot.git diff --git a/cpu/at32ap/interrupts.c b/cpu/at32ap/interrupts.c index 160838eeeb..75cc39e94c 100644 --- a/cpu/at32ap/interrupts.c +++ b/cpu/at32ap/interrupts.c @@ -82,7 +82,7 @@ void set_timer(unsigned long t) unsigned long long ticks = t; unsigned long lo, hi, hi_new; - ticks = (ticks * get_tbclk()) / CFG_HZ; + ticks = (ticks * get_tbclk()) / CONFIG_SYS_HZ; hi = ticks >> 32; lo = ticks & 0xffffffffUL; @@ -137,7 +137,7 @@ void timer_init(void) sysreg_write(COUNT, 0); - tmp = (u64)CFG_HZ << 32; + tmp = (u64)CONFIG_SYS_HZ << 32; tmp += gd->cpu_hz / 2; do_div(tmp, gd->cpu_hz); tb_factor = (u32)tmp;