UPSTREAM: MIPS: r2-on-r6-emu: Clear BLTZALL and BGEZALL debugfs counters
Add missing clearing of BLTZALL and BGEZALL emulation counters in function mipsr2_stats_clear_show(). Previously, it was not possible to reset BLTZALL and BGEZALL emulation counters - their value remained the same even after explicit request via debugfs. As far as other related counters are concerned, they all seem to be properly cleared. This change affects debugfs operation only, core R2 emulation functionality is not affected. Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com> Reviewed-by: Paul Burton <paul.burton@imgtec.com> Cc: james.hogan@imgtec.com Cc: leonid.yegoshin@imgtec.com Cc: douglas.leung@imgtec.com Cc: petar.jovanovic@imgtec.com Cc: miodrag.dinic@imgtec.com Cc: goran.ferenc@imgtec.com Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/15517/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> (cherry picked from commit 411dac79cc2ed80f7e348ccc23eb4d8b0ba9f6d5) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
4fed79c571
commit
4e734c6f34
1 changed files with 2 additions and 0 deletions
|
@ -2339,6 +2339,8 @@ static int mipsr2_stats_clear_show(struct seq_file *s, void *unused)
|
|||
__this_cpu_write((mipsr2bremustats).bgezl, 0);
|
||||
__this_cpu_write((mipsr2bremustats).bltzll, 0);
|
||||
__this_cpu_write((mipsr2bremustats).bgezll, 0);
|
||||
__this_cpu_write((mipsr2bremustats).bltzall, 0);
|
||||
__this_cpu_write((mipsr2bremustats).bgezall, 0);
|
||||
__this_cpu_write((mipsr2bremustats).bltzal, 0);
|
||||
__this_cpu_write((mipsr2bremustats).bgezal, 0);
|
||||
__this_cpu_write((mipsr2bremustats).beql, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue