X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=arch%2Favr32%2Fcpu%2Finterrupts.c;h=d87c6e11665daa9ffe0a486a03ec769e7ff77f38;hb=6e787b7234f7298d487d91dfb40c3146bf194a3e;hp=49a00f1c8ca7e4b6e57edb32844dc1f348c0dac1;hpb=c0e6723ee4b98fa0bda48028568bc3f853682567;p=karo-tx-uboot.git diff --git a/arch/avr32/cpu/interrupts.c b/arch/avr32/cpu/interrupts.c index 49a00f1c8c..d87c6e1166 100644 --- a/arch/avr32/cpu/interrupts.c +++ b/arch/avr32/cpu/interrupts.c @@ -46,7 +46,7 @@ static unsigned long tb_factor; unsigned long get_tbclk(void) { - return gd->cpu_hz; + return gd->arch.cpu_hz; } unsigned long long get_ticks(void) @@ -115,8 +115,8 @@ int timer_init(void) sysreg_write(COUNT, 0); tmp = (u64)CONFIG_SYS_HZ << 32; - tmp += gd->cpu_hz / 2; - do_div(tmp, gd->cpu_hz); + tmp += gd->arch.cpu_hz / 2; + do_div(tmp, gd->arch.cpu_hz); tb_factor = (u32)tmp; if (set_interrupt_handler(0, &timer_interrupt_handler, 3))