Commit 5f930860 authored by Paul Burton's avatar Paul Burton Committed by Ralf Baechle

MIPS: Use current_cpu_type() in m4kc_tlbp_war()

Use current_cpu_type() to check for 4Kc processors instead of checking
the PRID directly. This will allow for the 4Kc case to be optimised out
of kernels that can't run on 4KC processors, thanks to __get_cpu_type()
and its unreachable() call.
Signed-off-by: default avatarPaul Burton <>
Patchwork: default avatarRalf Baechle <>
parent cebf8c0f
......@@ -153,8 +153,7 @@ static int scratchpad_offset(int i)
static int m4kc_tlbp_war(void)
return (current_cpu_data.processor_id & 0xffff00) ==
return current_cpu_type() == CPU_4KC;
/* Handle labels (which must be positive integers). */
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