Skip to contentSkip to conversation

85xx: Format cpu freq printing to handle 8 cores

PATCH New Kumar Gala 1 participant 1 message Feb 4, 2009

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 85xx: Format cpu freq printing to handle 8 cores

Only print 4 cpu freq per line. This way when we have 8 cores its a bit more readable.

---
 cpu/mpc85xx/cpu.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
cpu/mpc85xx/cpu.c +5 -3
index a34e251..2ed44bf 100644
@@ -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:
Signature · 1 line
1.5.6.6