]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq/amd-pstate: Make amd_pstate_get_mode_string() never return NULL
authorMario Limonciello (AMD) <superm1@kernel.org>
Thu, 9 Oct 2025 16:17:53 +0000 (11:17 -0500)
committerMario Limonciello (AMD) <superm1@kernel.org>
Tue, 11 Nov 2025 05:35:20 +0000 (23:35 -0600)
commitbaf106f3a7ba8bf317e1f9d32ee88955723cbc71
tree065d1bd61563f961dd7a9854934bc3c0560243a6
parent06791bc017ea0793dae71553163c9107e91c415b
cpufreq/amd-pstate: Make amd_pstate_get_mode_string() never return NULL

amd_pstate_get_mode_string() is only used by amd-pstate-ut.  Set the
failure path to use AMD_PSTATE_UNDEFINED ("undefined") to avoid showing
"(null)" as a string when running test suite.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/cpufreq/amd-pstate.c