[PATCH 01/15] MIPS: probe_scache(): use MIPS_CONF_M linux kernel macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We already have MIPS_CONF_M macro in <asm/mipsregs.h> so
we have no need in homebrew CONFIG_M macro.

Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
Cc: Peter Mamonov <pmamonov@xxxxxxxxx>
---
 arch/mips/lib/c-r4k.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/mips/lib/c-r4k.c b/arch/mips/lib/c-r4k.c
index 0a9dd0e..ff68677 100644
--- a/arch/mips/lib/c-r4k.c
+++ b/arch/mips/lib/c-r4k.c
@@ -91,7 +91,6 @@ static void probe_pcache(void)
 	}
 }
 
-#define CONFIG_M	(1 << 31)
 #define CONFIG2_SS_OFFSET	8
 #define CONFIG2_SL_OFFSET	4
 #define CONFIG2_SA_OFFSET	0
@@ -101,10 +100,10 @@ static void probe_scache(void)
 	unsigned int config2, config1, config = read_c0_config();
 	unsigned int ss, sl, sa;
 
-	if ((config & CONFIG_M) == 0)
+	if ((config & MIPS_CONF_M) == 0)
 		goto noscache;
 	config1 = read_c0_config1();
-	if ((config1 & CONFIG_M) == 0)
+	if ((config1 & MIPS_CONF_M) == 0)
 		goto noscache;
 	config2 = read_c0_config2();
 	ss = 0xf & (config2 >> CONFIG2_SS_OFFSET);
-- 
2.7.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux