summaryrefslogtreecommitdiff
path: root/include/linux/amd-pstate.h
diff options
context:
space:
mode:
authorPerry Yuan <Perry.Yuan@amd.com>2023-01-31 12:00:10 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-02-03 23:59:41 +0300
commitd4da12f8033a123353eccf993cb95ee5bff21e7c (patch)
treeb36c069a512cfadf33490dcf26eb4c8f804ed2d6 /include/linux/amd-pstate.h
parentffa5096a7c338641f70fb06d4778e8cf400181a8 (diff)
downloadlinux-d4da12f8033a123353eccf993cb95ee5bff21e7c.tar.xz
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>
Diffstat (limited to 'include/linux/amd-pstate.h')
-rw-r--r--include/linux/amd-pstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/amd-pstate.h b/include/linux/amd-pstate.h
index 72ea7cf85ca3..f5f22418e64b 100644
--- a/include/linux/amd-pstate.h
+++ b/include/linux/amd-pstate.h
@@ -87,6 +87,7 @@ struct amd_cpudata {
s16 epp_cached;
u32 policy;
u64 cppc_cap1_cached;
+ bool suspended;
};
/*