diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2016-03-07 16:30:12 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-09 08:29:42 +0100 |
commit | 633caaa51ab625dd222401a9db39f17a3a8fbd5a (patch) | |
tree | 83bf1c3ce0a9c06575bc56a360b1ccf28988aac6 /arch/mips/lib/c-r4k.c | |
parent | 380a2a5dbe38b6b936fa8a1dd912b1bf6873d493 (diff) | |
download | barebox-633caaa51ab625dd222401a9db39f17a3a8fbd5a.tar.gz barebox-633caaa51ab625dd222401a9db39f17a3a8fbd5a.tar.xz |
MIPS: probe_scache(): use MIPS_CONF_M linux kernel macro
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@gmail.com>
Cc: Peter Mamonov <pmamonov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/lib/c-r4k.c')
-rw-r--r-- | arch/mips/lib/c-r4k.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |