소스 검색

MIPS: kernel: cpu-probe: Enable EVA option on supported cores

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Markos Chandras 12 년 전
부모
커밋
49016748ec
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      arch/mips/kernel/cpu-probe.c

+ 3 - 0
arch/mips/kernel/cpu-probe.c

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