Skip to content
Commit 8f8b42c1 authored by Perry Yuan's avatar Perry Yuan Committed by Mario Limonciello
Browse files

cpufreq: amd-pstate: optimize the initial frequency values verification



To enhance the debugging capability of the driver loading failure for
broken CPPC ACPI tables, it can optimize the expression by moving the
verification of `min_freq`, `nominal_freq`, and other dependency values
to the `amd_pstate_init_freq()` function where they are initialized.
If any of these values are incorrect, the `amd-pstate` driver will not be registered.

By ensuring that these values are correct before they are used, it will facilitate
the debugging process when encountering driver loading failures due to faulty CPPC
ACPI tables from BIOS

Signed-off-by: default avatarPerry Yuan <perry.yuan@amd.com>
Acked-by: default avatarGautham R. Shenoy <gautham.shenoy@amd.com>
Acked-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/f9793f8451c1832e34cc9dc35f89c653b39cfe38.1718811234.git.perry.yuan@amd.com


Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
parent fc6e0837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment