Re: [PATCH v4 04/11] perf/x86/rapl: Make rapl_model struct global

2024-07-11 Thread Zhang, Rui
On Thu, 2024-07-11 at 10:24 +, Dhananjay Ugwekar wrote: > To support AMD's per_core RAPL counter, we will need to check > per_core capability of the current rapl_model multiple times in > rapl_cpu_online/offline, init_rapl_pmus functions, so cache the > matched rapl model in a global variable,

[PATCH v4 04/11] perf/x86/rapl: Make rapl_model struct global

2024-07-11 Thread Dhananjay Ugwekar
To support AMD's per_core RAPL counter, we will need to check per_core capability of the current rapl_model multiple times in rapl_cpu_online/offline, init_rapl_pmus functions, so cache the matched rapl model in a global variable, to avoid calling x86_match_cpu() multiple times. No functional chan