]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Ingenic: Disable broken BTB lookup optimization.
authorZhou Yanjie <zhouyanjie@zoho.com>
Fri, 2 Aug 2019 08:27:37 +0000 (16:27 +0800)
committerPaul Burton <paul.burton@mips.com>
Tue, 6 Aug 2019 01:30:45 +0000 (18:30 -0700)
commit7c057fa9c5c893c1445aaba078e5e2babf6d1a24
treebc5f96fe93a333b97db884157b188a37c4e69c23
parent1e7700239d0e435b3e63207e5d942abb25547564
MIPS: Ingenic: Disable broken BTB lookup optimization.

In order to further reduce power consumption, the XBurst core
by default attempts to avoid branch target buffer lookups by
detecting & special casing loops. This feature will cause
BogoMIPS and lpj calculate in error. Set cp0 config7 bit 4 to
disable this feature.

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: ralf@linux-mips.org
Cc: paul@crapouillou.net
Cc: jhogan@kernel.org
Cc: malat@debian.org
Cc: gregkh@linuxfoundation.org
Cc: tglx@linutronix.de
Cc: allison@lohutok.net
Cc: syq@debian.org
Cc: chenhc@lemote.com
Cc: jiaxun.yang@flygoat.com
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/cpu-probe.c