summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorXiongfeng Wang <wangxiongfeng2@huawei.com>2019-02-17 11:54:14 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-02-18 11:27:42 +0100
commit1757d05f3112acc5c0cdbcccad3afdee99655bf9 (patch)
tree6fee7b7291a0f0191a1e0b54da6e80eaeaad46be /include/acpi
parenta9a22b570bd512eb1ed946042bb88f11ecccca0c (diff)
downloadlinux-1757d05f3112acc5c0cdbcccad3afdee99655bf9.tar.gz
linux-1757d05f3112acc5c0cdbcccad3afdee99655bf9.tar.bz2
linux-1757d05f3112acc5c0cdbcccad3afdee99655bf9.zip
ACPI / CPPC: Add a helper to get desired performance
This patch add a helper to get the value of desired performance register. Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> [ rjw: More white space ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/cppc_acpi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h
index 4f34734e7f36..ba6fd7202775 100644
--- a/include/acpi/cppc_acpi.h
+++ b/include/acpi/cppc_acpi.h
@@ -137,6 +137,7 @@ struct cppc_cpudata {
cpumask_var_t shared_cpu_map;
};
+extern int cppc_get_desired_perf(int cpunum, u64 *desired_perf);
extern int cppc_get_perf_ctrs(int cpu, struct cppc_perf_fb_ctrs *perf_fb_ctrs);
extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls);
extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps);