Commit 441ee341 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Fix RM9000 wait instruction detection.

Only revisions < 4.0 don't have a functional wait instruction.

From Thomas Koeller (Thomas.Koeller@baslerweb.com).
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 81e859ac
......@@ -135,7 +135,6 @@ static inline void check_wait(void)
case CPU_R5000:
case CPU_NEVADA:
case CPU_RM7000:
case CPU_RM9000:
case CPU_4KC:
case CPU_4KEC:
case CPU_4KSC:
......@@ -164,6 +163,14 @@ static inline void check_wait(void)
} else
printk(" unavailable.\n");
break;
case CPU_RM9000:
if ((c->processor_id & 0x00ff) >= 0x40) {
cpu_wait = r4k_wait;
printk(" available.\n");
} else {
printk(" unavailable.\n");
}
break;
default:
printk(" unavailable.\n");
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment