summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/topology.h
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2022-02-14 13:14:48 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-03-08 21:16:43 +0300
commit82d89369141b8fab56deff540121b8d09d289bfd (patch)
tree669c70cf6997534e228638cd5fb56050760aebc5 /arch/x86/include/asm/topology.h
parentfd8af343a299df264c41b1219358f502c7b5b18a (diff)
downloadlinux-82d89369141b8fab56deff540121b8d09d289bfd.tar.xz
x86/ACPI: CPPC: Move AMD maximum frequency ratio setting function into x86 CPPC
The AMD maximum frequency ratio setting function depends on CPPC, so the x86 CPPC implementation file is better space for this function. Signed-off-by: Huang Rui <ray.huang@amd.com> [ rjw: Subject adjustment ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/include/asm/topology.h')
-rw-r--r--arch/x86/include/asm/topology.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index 2f0b6be8eaab..168ade7d4007 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -226,4 +226,13 @@ void init_freq_invariance_cppc(void);
#define init_freq_invariance_cppc init_freq_invariance_cppc
#endif
+#ifdef CONFIG_ACPI_CPPC_LIB
+bool amd_set_max_freq_ratio(u64 *ratio);
+#else
+static inline bool amd_set_max_freq_ratio(u64 *ratio)
+{
+ return false;
+}
+#endif
+
#endif /* _ASM_X86_TOPOLOGY_H */