فهرست منبع

[MIPS] 20Kc: Disable use of WAIT instruction.

Another issue with 20Kc's WAIT, waiting for more details.  With the
2.6.23 release immindent simply disable the use of WAIT instead of a
more fancy workaround.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 17 سال پیش
والد
کامیت
50da469a79
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      arch/mips/kernel/cpu-probe.c

+ 8 - 1
arch/mips/kernel/cpu-probe.c

@@ -199,7 +199,14 @@ static inline void check_wait(void)
 		if ((c->processor_id & 0xff) <= 0x64)
 		if ((c->processor_id & 0xff) <= 0x64)
 			break;
 			break;
 
 
-		cpu_wait = r4k_wait;
+		/*
+		 * Another rev is incremeting c0_count at a reduced clock
+		 * rate while in WAIT mode.  So we basically have the choice
+		 * between using the cp0 timer as clocksource or avoiding
+		 * the WAIT instruction.  Until more details are known,
+		 * disable the use of WAIT for 20Kc entirely.
+		   cpu_wait = r4k_wait;
+		 */
 		break;
 		break;
 	case CPU_RM9000:
 	case CPU_RM9000:
 		if ((c->processor_id & 0x00ff) >= 0x40)
 		if ((c->processor_id & 0x00ff) >= 0x40)