This patch series adds idle-state functionality to control cpu power usage and to test idle states. The number of cpus was needed in the cpupower file; I extracted out the previously local to tuna-cli.py functionality to a separate file so the cpu code can be used in any file in Tuna and reduce duplications. The nics code was similar so it was also extracted to reduce the number of global variables. Sincerely, John Wyatt Software Engineer, Core Kernel Red Hat John B. Wyatt IV (2): tuna: extract cpu and nics determination code into a utils.py file tuna: Add idle-state control functionality tuna-cmd.py | 67 +++++++++------- tuna/cpupower.py | 202 +++++++++++++++++++++++++++++++++++++++++++++++ tuna/utils.py | 27 +++++++ 3 files changed, 267 insertions(+), 29 deletions(-) create mode 100755 tuna/cpupower.py create mode 100644 tuna/utils.py -- 2.48.1