]> Pileus Git - ~andy/linux/commitdiff
Blackfin: move MPU anomaly check to common location
authorMike Frysinger <vapier@gentoo.org>
Thu, 27 May 2010 22:33:46 +0000 (22:33 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 6 Aug 2010 16:55:45 +0000 (12:55 -0400)
Keep all anomaly/arch checks in one place to keep logic simple.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/cplb-mpu/cplbinit.c
arch/blackfin/mach-common/arch_checks.c

index 30fd6417f0698f53d30fd263dd534fb6cc92e992..c15fd05f0b0969849ff6304ec432036464bea2bb 100644 (file)
 #include <asm/cplbinit.h>
 #include <asm/mem_map.h>
 
-#if ANOMALY_05000263
-# error the MPU will not function safely while Anomaly 05000263 applies
-#endif
-
 struct cplb_entry icplb_tbl[NR_CPUS][MAX_CPLBS];
 struct cplb_entry dcplb_tbl[NR_CPUS][MAX_CPLBS];
 
index f2ca211a76a09a4497b0b18714cac2df2e0fb8a5..92a5c51a7f108f4d30209d53332ec04ab062777e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Do some checking to make sure things are OK
  *
- * Copyright 2007-2009 Analog Devices Inc.
+ * Copyright 2007-2010 Analog Devices Inc.
  *
  * Licensed under the GPL-2 or later.
  */
 # error "The kernel load address is too high; keep it below 10meg for safety"
 #endif
 
+#if ANOMALY_05000263 && defined(CONFIG_MPU)
+# error the MPU will not function safely while Anomaly 05000263 applies
+#endif
+
 #if ANOMALY_05000448
 # error You are using a part with anomaly 05000448, this issue causes random memory read/write failures - that means random crashes.
 #endif