]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: store all values in cpudata struct in khz
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 18:52:41 +0000 (12:52 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Dec 2024 16:44:53 +0000 (10:44 -0600)
commit68cb0e77b6439fea64c6907c563b7bd27f2ee57f
tree91bca2c71a4f1329cc18f1fc2daf05521cb9c152
parent474e7218e81e7932ed18f91969b72169005ff038
cpufreq/amd-pstate: store all values in cpudata struct in khz

Storing values in the cpudata structure in different units leads
to confusion and hardcoded conversions elsewhere.  After ratios are
calculated store everything in khz for any future use. Adjust all
relevant consumers for this change as well.

Suggested-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241209185248.16301-9-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-ut.c
drivers/cpufreq/amd-pstate.c