• Zhou Yanjie's avatar
    MIPS: Ingenic: Disable broken BTB lookup optimization. · 3ed14a8d
    Zhou Yanjie authored
    [ Upstream commit 053951dd ]
    
    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: default avatarZhou Yanjie <zhouyanjie@zoho.com>
    Signed-off-by: default avatarPaul 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
    Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
    3ed14a8d
mipsregs.h 90.9 KB