Title: [6428] trunk/arch/blackfin/kernel/traps.c: I'm tired of always having to ask people what processor/rev/speed they
Revision
6428
Author
rgetz
Date
2009-05-20 16:19:21 -0500 (Wed, 20 May 2009)

Log Message

I'm tired of always having to ask people what processor/rev/speed they
are running when they post a bug report - so always print it out when an
application/kernel crashes.

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/traps.c (6427 => 6428)


--- trunk/arch/blackfin/kernel/traps.c	2009-05-20 16:32:22 UTC (rev 6427)
+++ trunk/arch/blackfin/kernel/traps.c	2009-05-20 21:19:21 UTC (rev 6428)
@@ -1079,6 +1079,22 @@
 	unsigned int cpu = smp_processor_id();
 	unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();
 
+	verbose_printk(KERN_NOTICE "\n");
+	if (CPUID != bfin_cpuid() ||  bfin_revid() != bfin_compiled_revid())
+		verbose_printk(KERN_NOTICE "Compiled for cpu family 0x%04x (Rev %d), "
+			"but running on:0x%04x (Rev %d)\n",
+			CPUID, bfin_compiled_revid(), bfin_cpuid(), bfin_revid());
+
+	verbose_printk(KERN_NOTICE "ADSP-%s Rev:%d %lu(MHz CCLK) %lu(MHz SCLK) (%s)\n",
+		CPU, bfin_revid(), get_cclk()/1000000, get_sclk()/1000000,
+#ifdef CONFIG_MPU
+		"mpu on"
+#else
+		"mpu off"
+#endif
+		);
+
+
 	verbose_printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted());
 	verbose_printk(KERN_NOTICE " SEQSTAT: %08lx  IPEND: %04lx  SYSCFG: %04lx\n",
 		(long)fp->seqstat, fp->ipend, fp->syscfg);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to