]> Gentwo Git Trees - linux/.git/commit
cpufreq/amd-pstate: Remove the switch case in amd_pstate_init()
authorDhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Thu, 17 Oct 2024 10:05:31 +0000 (10:05 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 28 Oct 2024 19:54:35 +0000 (14:54 -0500)
commit162cfa4eba7350cdcbd610c4b2af860a0ecc5f21
tree5fa7249f9eff5152bbe0224e4854f5af5444801d
parente3591eebeca78117ce1d07985d42b75e6506252a
cpufreq/amd-pstate: Remove the switch case in amd_pstate_init()

Replace the switch case with a more readable if condition.

Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241017100528.300143-4-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c