cpufreq: amd-pstate: implement amd pstate cpu online and offline callback
authorPerry Yuan <Perry.Yuan@amd.com>
Tue, 31 Jan 2023 09:00:10 +0000 (17:00 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Feb 2023 20:59:41 +0000 (21:59 +0100)
commitd4da12f8033a123353eccf993cb95ee5bff21e7c
treeb36c069a512cfadf33490dcf26eb4c8f804ed2d6
parentffa5096a7c338641f70fb06d4778e8cf400181a8
cpufreq: amd-pstate: implement amd pstate cpu online and offline callback

Adds online and offline driver callback support to allow cpu cores go
offline and help to restore the previous working states when core goes
back online later for EPP driver mode.

Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Mario Limonciello <Mario.Limonciello@amd.com>
Reviewed-by: Wyes Karny <wyes.karny@amd.com>
Tested-by: Wyes Karny <wyes.karny@amd.com>
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/amd-pstate.c
include/linux/amd-pstate.h