From 633caaa51ab625dd222401a9db39f17a3a8fbd5a Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Mon, 7 Mar 2016 16:30:12 +0300 Subject: MIPS: probe_scache(): use MIPS_CONF_M linux kernel macro We already have MIPS_CONF_M macro in so we have no need in homebrew CONFIG_M macro. Signed-off-by: Antony Pavlov Cc: Peter Mamonov Signed-off-by: Sascha Hauer --- arch/mips/lib/c-r4k.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arch/mips/lib/c-r4k.c') diff --git a/arch/mips/lib/c-r4k.c b/arch/mips/lib/c-r4k.c index 0a9dd0eb9a..ff686770e1 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); -- cgit v1.2.3