summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-04-14 17:18:07 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-04-14 17:18:07 +0200
commit684952212ca639bce124e673f9f644a09895359c (patch)
treed69b9291f10610ad4c71393ed71fabed91f07f70 /include/acpi
parent4654e9f9f43993eb9ce383fa7c88d14b052b8cc3 (diff)
parent11fa52fe619acfa945712d94a0bc27c0f5bc49de (diff)
downloadlinux-stable-684952212ca639bce124e673f9f644a09895359c.tar.gz
linux-stable-684952212ca639bce124e673f9f644a09895359c.tar.bz2
linux-stable-684952212ca639bce124e673f9f644a09895359c.zip
Merge back cpufreq changes for 6.4-rc1.
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/cppc_acpi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h
index 6b487a5bd638..6126c977ece0 100644
--- a/include/acpi/cppc_acpi.h
+++ b/include/acpi/cppc_acpi.h
@@ -109,6 +109,7 @@ struct cppc_perf_caps {
u32 lowest_freq;
u32 nominal_freq;
u32 energy_perf;
+ bool auto_sel;
};
struct cppc_perf_ctrls {
@@ -153,6 +154,8 @@ extern int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val);
extern int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val);
extern int cppc_get_epp_perf(int cpunum, u64 *epp_perf);
extern int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable);
+extern int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps);
+extern int cppc_set_auto_sel(int cpu, bool enable);
#else /* !CONFIG_ACPI_CPPC_LIB */
static inline int cppc_get_desired_perf(int cpunum, u64 *desired_perf)
{
@@ -214,6 +217,14 @@ static inline int cppc_get_epp_perf(int cpunum, u64 *epp_perf)
{
return -ENOTSUPP;
}
+static inline int cppc_set_auto_sel(int cpu, bool enable)
+{
+ return -ENOTSUPP;
+}
+static inline int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps)
+{
+ return -ENOTSUPP;
+}
#endif /* !CONFIG_ACPI_CPPC_LIB */
#endif /* _CPPC_ACPI_H*/