summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc824x
diff options
context:
space:
mode:
authorShruti Kanetkar <Shruti@Freescale.com>2013-08-15 11:25:37 -0500
committerYork Sun <yorksun@freescale.com>2013-08-20 10:37:58 -0700
commit2f848f97d7b27a88135de98aae76531a6fdd44e6 (patch)
tree149900c8d86112b4e272cabb49694fa0f65fd3a9 /arch/powerpc/cpu/mpc824x
parentbf9025662353afe3be5288ab508c8c3351691997 (diff)
downloadu-boot-imx-2f848f97d7b27a88135de98aae76531a6fdd44e6.zip
u-boot-imx-2f848f97d7b27a88135de98aae76531a6fdd44e6.tar.gz
u-boot-imx-2f848f97d7b27a88135de98aae76531a6fdd44e6.tar.bz2
powerpc: Use print_size() where appropriate
Makes the startup output more consistent Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com> Acked-by: Andy Fleming <afleming@freescale.com> Acked-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc824x')
-rw-r--r--arch/powerpc/cpu/mpc824x/cpu.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/cpu/mpc824x/cpu.c b/arch/powerpc/cpu/mpc824x/cpu.c
index ee69e49..7ed38c8 100644
--- a/arch/powerpc/cpu/mpc824x/cpu.c
+++ b/arch/powerpc/cpu/mpc824x/cpu.c
@@ -45,12 +45,10 @@ int checkcpu (void)
return -1; /* no valid CPU revision info */
}
- printf (" at %s MHz:", strmhz (buf, clock));
+ printf (" at %s MHz: ", strmhz (buf, clock));
- printf (" %u kB I-Cache", checkicache () >> 10);
- printf (" %u kB D-Cache", checkdcache () >> 10);
-
- puts ("\n");
+ print_size(checkicache(), " I-Cache ");
+ print_size(checkdcache(), " D-Cache\n");
return 0;
}