mbox series

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

Message ID 20240901024912.1217014-1-superm1@kernel.org
Headers show
Series amd-pstate: Add unit tests for state machine | expand

Message

Mario Limonciello Sept. 1, 2024, 2:49 a.m. UTC
From: Mario Limonciello <mario.limonciello@amd.com>

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(-)