]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq/amd-pstate: Cache the max frequency in cpudata
authorMario Limonciello (AMD) <superm1@kernel.org>
Thu, 26 Mar 2026 19:36:20 +0000 (14:36 -0500)
committerMario Limonciello (AMD) <superm1@kernel.org>
Thu, 2 Apr 2026 16:28:54 +0000 (11:28 -0500)
commit8cdc494013dfcd48f31eafe19b18fd67c224dd8a
tree9669016eb3df6c71e08d0b9f7a61cedabb74830f
parent88d2ca6a68fcc43d65b3b056cb8c481804b100b0
cpufreq/amd-pstate: Cache the max frequency in cpudata

The value of maximum frequency is fixed and never changes. Doing
calculations every time based off of perf is unnecessary.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20260326193620.649441-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h