]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: c-r4k: Avoid duplicate CPU_74K/CPU_1074K checks
authorMaciej W. Rozycki <macro@linux-mips.org>
Sat, 28 Jun 2014 22:28:08 +0000 (23:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 13:50:52 +0000 (15:50 +0200)
commit3942fa2b329bbc9ddfee20b3990450a1cd51a520
tree687bf4e34645b5cbc4d5e75b01c0f3b6e8092d20
parentdeb506c8d167d37f5c9c37a7b8b8dc76d7fc2e1a
MIPS: c-r4k: Avoid duplicate CPU_74K/CPU_1074K checks

Code in a switch statement in probe_pcache checks the CPU type twice
unnecessarily for processor implementations that have the alias removal
feature reported by the CP0 Config7.AR and Config7.IAR bits.  This change
rewrites the affected fragment avoiding the extraneous check and improving
readability.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7221/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/c-r4k.c