85xx: Speed up get_ddr_freq() and get_bus_freq()
authorJames Yang <James.Yang@freescale.com>
Sat, 9 Feb 2008 00:05:08 +0000 (18:05 -0600)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Wed, 26 Mar 2008 16:43:04 +0000 (11:43 -0500)
commita3e77fa5359b3f9f59e4e946b46d57a53057cc85
tree3bcc915dc6f1899b5e388793b1945c77fef3f16e
parente9ea679918fbc9a53fa2f2a904aac874ea736036
85xx: Speed up get_ddr_freq() and get_bus_freq()

get_ddr_freq() and get_bus_freq() used get_sys_info() each time they were
called.  However, get_sys_info() recalculates extraneous information when
called each time.  Have get_ddr_freq() and get_bus_freq() return memoized
values from global_data instead.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/speed.c
include/asm-ppc/global_data.h