]> www.infradead.org Git - users/jedix/linux-maple.git/commit
amd-pstate-ut: Reset amd-pstate driver mode after running selftests
authorSwapnil Sapkal <swapnil.sapkal@amd.com>
Wed, 30 Apr 2025 06:42:06 +0000 (06:42 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 5 May 2025 17:07:42 +0000 (12:07 -0500)
commitd26d16438bc5fd5524121244cc133f9872a63210
tree3bfd0db8f31e0167d496728d857799d5ca29945c
parent608a76b65288698677843d2f22418e03391ef95f
amd-pstate-ut: Reset amd-pstate driver mode after running selftests

In amd-pstate-ut, one of the basic test is to switch between all
possible mode combinations. After running this test the mode of the
amd-pstate driver is active mode. Store and reset the mode to its original
state.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250430064206.7402-1-swapnil.sapkal@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-ut.c
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h