]> git.hungrycats.org Git - linux/commit
cpufreq/amd-pstate: Add static asserts for EPP indices
authorMario Limonciello (AMD) <superm1@kernel.org>
Thu, 9 Oct 2025 16:17:56 +0000 (11:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2026 11:36:18 +0000 (13:36 +0200)
commitb461ae97f2e4469bb3aae54b7815288b4899042f
tree525706f27418b70bca389a0403ebe1ebedfc7423
parent8f8db9af24b9a8933720665fe7a8c20d0f06aa5f
cpufreq/amd-pstate: Add static asserts for EPP indices

[ Upstream commit 077f23573d29d063a950e90aa77c8e1f79580147 ]

In case a new index is introduced add a static assert to make sure
that strings and values are updated.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Stable-dep-of: caa822d312be ("cpufreq/amd-pstate: Use "epp_default_dc" as default when dynamic_epp is disabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/amd-pstate.c