]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate-ut: Convert nominal_freq to khz during comparisons
authorDhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Tue, 2 Jul 2024 08:14:13 +0000 (08:14 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Sun, 7 Jul 2024 15:32:31 +0000 (10:32 -0500)
commitf21ab5ed4e8758b06230900f44b9dcbcfdc0c3ae
tree927c266e762a43111209bca13cefe5cc9ae1b9e3
parent6d588891a90c5a946aaac11a93d06edd89ed9054
cpufreq/amd-pstate-ut: Convert nominal_freq to khz during comparisons

cpudata->nominal_freq being in MHz whereas other frequencies being in
KHz breaks the amd-pstate-ut frequency sanity check. This fixes it.

Fixes: e4731baaf294 ("cpufreq: amd-pstate: Fix the inconsistency in max frequency units")
Reported-by: David Arcari <darcari@redhat.com>
Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20240702081413.5688-2-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-ut.c