aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/cpufreq/amd-pstate.h
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-06-12 09:20:49 -0500
committerMario Limonciello <mario.limonciello@amd.com>2024-06-20 21:52:05 -0500
commitfc6e0837264a8b2504b6160e63ec92eb012540f3 (patch)
tree2dcfa97532b64f7a2fea3acf69ca8732e563be52 /drivers/cpufreq/amd-pstate.h
parentcpufreq: amd-pstate: change cpu freq transition delay for some models (diff)
downloadwireguard-linux-fc6e0837264a8b2504b6160e63ec92eb012540f3.tar.xz
wireguard-linux-fc6e0837264a8b2504b6160e63ec92eb012540f3.zip
cpufreq: amd-pstate: Allow users to write 'default' EPP string
The EPP string for 'default' represents what the firmware had configured as the default EPP value but once a user changes EPP to another string they can't reset it back to 'default'. Cache the firmware EPP value and allow the user to write 'default' using this value. Reported-by: Artem S. Tashkinov <aros@gmx.com> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217931#c61 Reviewed-by: Perry Yuan <perry.yuan@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to '')
-rw-r--r--drivers/cpufreq/amd-pstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/amd-pstate.h b/drivers/cpufreq/amd-pstate.h
index e6a28e7f4dbf..f80b33fa5d43 100644
--- a/drivers/cpufreq/amd-pstate.h
+++ b/drivers/cpufreq/amd-pstate.h
@@ -99,6 +99,7 @@ struct amd_cpudata {
u32 policy;
u64 cppc_cap1_cached;
bool suspended;
+ s16 epp_default;
};
#endif /* _LINUX_AMD_PSTATE_H */