]> git.sur5r.net Git - u-boot/commitdiff
85xx: Format cpu freq printing to handle 8 cores
authorKumar Gala <galak@kernel.crashing.org>
Wed, 4 Feb 2009 15:35:57 +0000 (09:35 -0600)
committerAndy Fleming <afleming@freescale.com>
Tue, 17 Feb 2009 00:05:50 +0000 (18:05 -0600)
Only print 4 cpu freq per line.  This way when we have 8 cores its a
bit more readable.

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

index a34e2515e8002416f887a6a764ef0717f0173fbb..2ed44bf2ad790ec9abc5d9a48658a696930ed066 100644 (file)
@@ -142,11 +142,13 @@ int checkcpu (void)
 
        get_sys_info(&sysinfo);
 
-       puts("Clock Configuration:\n       ");
-       for (i = 0; i < CONFIG_NUM_CPUS; i++)
+       puts("Clock Configuration:");
+       for (i = 0; i < CONFIG_NUM_CPUS; i++) {
+                if (!(i & 3)) printf ("\n       ");
                printf("CPU%d:%-4s MHz, ",
                                i,strmhz(buf1, sysinfo.freqProcessor[i]));
-       printf("CCB:%-4s MHz,\n", strmhz(buf1, sysinfo.freqSystemBus));
+       }
+       printf("\n       CCB:%-4s MHz,\n", strmhz(buf1, sysinfo.freqSystemBus));
 
        switch (ddr_ratio) {
        case 0x0: