]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: amd-pstate: Allow users to write 'default' EPP string
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 12 Jun 2024 14:20:49 +0000 (09:20 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Fri, 21 Jun 2024 02:52:05 +0000 (21:52 -0500)
commitfc6e0837264a8b2504b6160e63ec92eb012540f3
tree2dcfa97532b64f7a2fea3acf69ca8732e563be52
parentc00d476cbcef4cbcf0c7db8944df7e98a36bdbfa
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>
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h