Re: [PATCH 2/2 v3] MIPS: Ingenic: Fix bugs when calculate bogomips/lpj.

2019-08-02 Thread Paul Burton
Hi Paul, On Thu, Aug 01, 2019 at 09:26:09PM -0400, Paul Cercueil wrote: > > diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c > > index eb527a1..2bdd3e1 100644 > > --- a/arch/mips/kernel/cpu-probe.c > > +++ b/arch/mips/kernel/cpu-probe.c > > @@ -1964,6 +1964,13 @@ static

Re: [PATCH 2/2 v3] MIPS: Ingenic: Fix bugs when calculate bogomips/lpj.

2019-08-02 Thread Zhou Yanjie
On 2019年08月02日 09:26, Paul Cercueil wrote: Hi Zhou, Le jeu. 1 août 2019 à 8:16, Zhou Yanjie a écrit : Enable BTB lookups for short loops to fix bugs when calculate bogomips and loops_per_jiffy. The commit description and the code comment below seem to say two different things. Are we

Re: [PATCH 2/2 v3] MIPS: Ingenic: Fix bugs when calculate bogomips/lpj.

2019-08-01 Thread Paul Cercueil
Hi Zhou, Le jeu. 1 août 2019 à 8:16, Zhou Yanjie a écrit : Enable BTB lookups for short loops to fix bugs when calculate bogomips and loops_per_jiffy. The commit description and the code comment below seem to say two different things. Are we enabling the BTB lookup optimization, or not?

[PATCH 2/2 v3] MIPS: Ingenic: Fix bugs when calculate bogomips/lpj.

2019-08-01 Thread Zhou Yanjie
Enable BTB lookups for short loops to fix bugs when calculate bogomips and loops_per_jiffy. Signed-off-by: Zhou Yanjie --- arch/mips/include/asm/mipsregs.h | 4 arch/mips/kernel/cpu-probe.c | 7 +++ 2 files changed, 11 insertions(+) diff --git a/arch/mips/include/asm/mipsregs.h