]> git.sur5r.net Git - u-boot/commit
85xx: get_tbclk() speed up and rounding fix
authorJames Yang <James.Yang@freescale.com>
Fri, 8 Feb 2008 22:44:53 +0000 (16:44 -0600)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Wed, 26 Mar 2008 16:43:04 +0000 (11:43 -0500)
commit591933ca6eabc440e6ed6967233aaf56fce464a3
treed62e9b345930064e26fde5485c2cafb688445f26
parent1ced121600b2060ab2ff9f0fddd9421fd70a0dc6
85xx: get_tbclk() speed up and rounding fix

Speed up get_tbclk() by referencing pre-computed bus clock
frequency value from global data instead of sys_info_t.  Fix
rounding of result to nearest; previously it was rounding
upwards.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/cpu.c