Skip to content
Commit 23c296fb authored by Jinzhou Su's avatar Jinzhou Su Committed by Rafael J. Wysocki
Browse files

cpufreq: amd-pstate: Add more tracepoint for AMD P-State module



Add frequency, mperf, aperf and tsc in the trace. This can be used
to debug and tune the performance of AMD P-state driver.

Use the time difference between amd_pstate_update to calculate CPU
frequency. There could be sleep in arch_freq_get_on_cpu, so do not
use it here.

Signed-off-by: default avatarJinzhou Su <Jinzhou.Su@amd.com>
Co-developed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a1b6f487
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment