Re: [PATCH 2/3] perf/x86/rapl: refactor code for Intel/AMD sharing

2020-05-18 Thread Peter Zijlstra
On Fri, May 15, 2020 at 02:57:32PM -0700, Stephane Eranian wrote: > This patch modifies the rapl_model struct to include architecture specific > knowledge to Intel specific structure, and in particular the MSR for > POWER_UNIT and the rapl_msrs array. > > No functional changes. > > Signed-off-by:

[PATCH 2/3] perf/x86/rapl: refactor code for Intel/AMD sharing

2020-05-15 Thread Stephane Eranian
This patch modifies the rapl_model struct to include architecture specific knowledge to Intel specific structure, and in particular the MSR for POWER_UNIT and the rapl_msrs array. No functional changes. Signed-off-by: Stephane Eranian --- arch/x86/events/rapl.c | 29 +++-