Title: [5849] trunk/arch/blackfin/kernel/setup.c: do not allow people to pass in a diff clkin_hz value when reprogramming clocks -- it is too late currently
- Revision
- 5849
- Author
- vapier
- Date
- 2008-12-09 21:50:52 -0600 (Tue, 09 Dec 2008)
Log Message
do not allow people to pass in a diff clkin_hz value when reprogramming clocks -- it is too late currently
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/setup.c (5848 => 5849)
--- trunk/arch/blackfin/kernel/setup.c 2008-12-09 18:44:21 UTC (rev 5848)
+++ trunk/arch/blackfin/kernel/setup.c 2008-12-10 03:50:52 UTC (rev 5849)
@@ -951,6 +951,10 @@
static int __init early_init_clkin_hz(char *buf)
{
cached_clkin_hz = simple_strtoul(buf, NULL, 0);
+#ifdef BFIN_KERNEL_CLOCK
+ if (cached_clkin_hz != CONFIG_CLKIN_HZ)
+ panic("cannot change clkin_hz when reprogramming clocks");
+#endif
return 1;
}
early_param("clkin_hz=", early_init_clkin_hz);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits