]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add CPU shared FTLB feature detection
authorPaul Burton <paul.burton@imgtec.com>
Fri, 2 Jun 2017 22:38:01 +0000 (15:38 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:29 +0000 (02:42 +0200)
commite7bc8557428f069eaa613b3676ea6931c0f7fe43
treec7f4f7a8b42f6c974159eef349eb041b5ea7b570
parentfa7a3b4a7217b40bf58c4f38e5ee573b43a8aa2f
MIPS: Add CPU shared FTLB feature detection

Some systems share FTLB RAMs or entries between sibling CPUs (ie.
hardware threads, or VP(E)s, within a core). These properties require
kernel handling in various places. As a start this patch introduces
cpu_has_shared_ftlb_ram & cpu_has_shared_ftlb_entries feature macros
which we set appropriately for I6400 & I6500 CPUs. Further patches will
make use of these macros as appropriate.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16202/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu.h
arch/mips/kernel/cpu-probe.c