]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: kernel: cpu-probe: Enable EVA option on supported cores
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 9 Jan 2014 16:04:51 +0000 (16:04 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:18 +0000 (23:09 +0100)
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/kernel/cpu-probe.c

index ee5de360636ddf61767b63b75b6341494868db12..e225b0d369e891bc11d15e75f279f60c9b5bddc7 100644 (file)
@@ -386,6 +386,9 @@ static inline unsigned int decode_config5(struct cpuinfo_mips *c)
        config5 &= ~MIPS_CONF5_UFR;
        write_c0_config5(config5);
 
+       if (config5 & MIPS_CONF5_EVA)
+               c->options |= MIPS_CPU_EVA;
+
        return config5 & MIPS_CONF_M;
 }