diff options
author | Simon Glass <sjg@chromium.org> | 2012-12-13 20:49:10 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-04 09:05:45 -0500 |
commit | 3d0f8c8f8072a3f2844fc54bfaf2a42026903755 (patch) | |
tree | e2457b1cde899c21cdd41d3ca46fbe9763f7d250 /arch/avr32/cpu/interrupts.c | |
parent | 1c865d58974cf3a45f87e65c3f348b5b9e398990 (diff) | |
download | u-boot-imx-3d0f8c8f8072a3f2844fc54bfaf2a42026903755.zip u-boot-imx-3d0f8c8f8072a3f2844fc54bfaf2a42026903755.tar.gz u-boot-imx-3d0f8c8f8072a3f2844fc54bfaf2a42026903755.tar.bz2 |
avr32: Move cpu_hz to arch_global_data
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/avr32/cpu/interrupts.c')
-rw-r--r-- | arch/avr32/cpu/interrupts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/avr32/cpu/interrupts.c b/arch/avr32/cpu/interrupts.c index 49a00f1..d87c6e1 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)) |