aboutsummaryrefslogtreecommitdiff
path: root/lib/iommu-common.c
diff options
context:
space:
mode:
authorKan Liang2018-05-03 11:25:06 -0700
committerIngo Molnar2018-05-31 12:36:27 +0200
commit2da331465f44f9618abe8837d1a68405d550b66e (patch)
tree3e6bc6682372f82db6510dc33f071ea7b4b3ca0d /lib/iommu-common.c
parentc52b5c5f96b217854a953689f65234f7448c7f47 (diff)
perf/x86/intel/uncore: Introduce customized event_read() for client IMC uncore
There are two free-running counters for client IMC uncore. The customized event_init() function hard codes their index to 'UNCORE_PMC_IDX_FIXED' and 'UNCORE_PMC_IDX_FIXED + 1'. To support the index 'UNCORE_PMC_IDX_FIXED + 1', the generic uncore_perf_event_update is obscurely hacked. The code quality issue will bring problems when a new counter index is introduced into the generic code, for example, a new index for free-running counter. Introducing a customized event_read() function for client IMC uncore. The customized function is copied from previous generic uncore_pmu_event_read(). The index 'UNCORE_PMC_IDX_FIXED + 1' will be isolated for client IMC uncore only. Signed-off-by: Kan Liang <kan.liang@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: acme@kernel.org Cc: eranian@google.com Link: http://lkml.kernel.org/r/1525371913-10597-1-git-send-email-kan.liang@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/iommu-common.c')
0 files changed, 0 insertions, 0 deletions