]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Move all EPP tracing into *_update_perf and *_set_epp functions
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 17:57:38 +0000 (11:57 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 6 Mar 2025 19:01:25 +0000 (13:01 -0600)
commit77fbea69b0ffad0e46c7018d07e04b6628482e14
tree2360b7e92d5946cdaf4cd996445499bf1403746c
parent9f5daa2f2f6dddd2a847d077bfddc7dc0d9dab10
cpufreq/amd-pstate: Move all EPP tracing into *_update_perf and *_set_epp functions

The EPP tracing is done by the caller today, but this precludes the
information about whether the CPPC request has changed.

Move it into the update_perf and set_epp functions and include information
about whether the request has changed from the last one.
amd_pstate_update_perf() and amd_pstate_set_epp() now require the policy
as an argument instead of the cpudata.

Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-trace.h
drivers/cpufreq/amd-pstate.c