[PATCH 0/2] amd-pstate: Add unit tests for state machine

From: Mario Limonciello
Date: Sat Aug 31 2024 - 22:49:44 EST


From: Mario Limonciello <mario.limonciello@xxxxxxx>

The state machine for amd-pstate allows changing from any supported
mode to another. This is a relatively large matrix of possible moves
that doesn't have test coverage.

Walk through the matrix as part of amd-pstate-ut tests to make sure
that all transitions work.

Mario Limonciello (2):
cpufreq/amd-pstate: Export symbols for changing modes
cpufreq/amd-pstate-ut: Add test case for mode switches

drivers/cpufreq/amd-pstate-ut.c | 41 ++++++++++++++++++++++++++++++++-
drivers/cpufreq/amd-pstate.c | 23 ++++++++----------
drivers/cpufreq/amd-pstate.h | 14 +++++++++++
3 files changed, 64 insertions(+), 14 deletions(-)

--
2.43.0