]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Use current_cpu_type() in m4kc_tlbp_war()
authorPaul Burton <paul.burton@imgtec.com>
Fri, 2 Jun 2017 22:38:04 +0000 (15:38 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:29 +0000 (02:42 +0200)
commite7aa3963869b6f45c0434cf480e4968c031d3933
tree86d9acf1f4960d7111fdcfaa6028ce03e0c5d89a
parentb62b2d54bff51527b8d6fa407ff50cb5dfb06c6a
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: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16205/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c