cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically
authorMeng Li <li.meng@amd.com>
Fri, 19 Jan 2024 09:05:00 +0000 (17:05 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Jan 2024 13:54:50 +0000 (14:54 +0100)
commite571a5e2068ef57945fcd5d0fb950f8f96da6dc8
tree8170d868c98ff37a7caffc90a60b3d73db4cc47f
parent9c4a13a08a9b7afa4bc33f57675358f0195e302c
cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

Preferred core rankings can be changed dynamically by the
platform based on the workload and platform conditions and
accounting for thermals and aging.
When this occurs, cpu priority need to be set.

Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Wyes Karny <wyes.karny@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Meng Li <li.meng@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/amd-pstate.c
include/linux/amd-pstate.h