diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-04-27 04:36:37 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-26 20:04:56 +0200 |
commit | dcd9936a5a6d89512b5323c1145647f2dbe0236f (patch) | |
tree | 5ad83bc4f2a61e5ff65d4d0950cee6a36b65696d /tools/power | |
parent | 749141d926faf23ef811686a8050e7cf13dc223f (diff) | |
download | kernel-mfld-blackbay-dcd9936a5a6d89512b5323c1145647f2dbe0236f.tar.gz kernel-mfld-blackbay-dcd9936a5a6d89512b5323c1145647f2dbe0236f.tar.bz2 kernel-mfld-blackbay-dcd9936a5a6d89512b5323c1145647f2dbe0236f.zip |
perf stat: Factor our shadow stats
Create update_shadow_stats() which is then used in both read_counter_aggr()
and read_counter().
This not only simplifies the code but also fixes a bug: HW_CACHE_REFERENCES
was not updated in read_counter().
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-9uc55z3g88r47exde7zxjm6p@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions