summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/cpufreq/mperf.h
diff options
context:
space:
mode:
authorMark Langsdorf2010-03-18 18:41:46 +0100
committerH. Peter Anvin2010-04-09 23:07:40 +0200
commita2fed573f065e526bfd5cbf26e5491973d9e9aaa (patch)
tree069ea4932051dd4535de4bf896e09deff836e0b9 /arch/x86/kernel/cpu/cpufreq/mperf.h
parentx86: Unify APERF/MPERF support (diff)
downloadkernel-qcow2-linux-a2fed573f065e526bfd5cbf26e5491973d9e9aaa.tar.gz
kernel-qcow2-linux-a2fed573f065e526bfd5cbf26e5491973d9e9aaa.tar.xz
kernel-qcow2-linux-a2fed573f065e526bfd5cbf26e5491973d9e9aaa.zip
x86, cpufreq: Add APERF/MPERF support for AMD processors
Starting with model 10 of Family 0x10, AMD processors may have support for APERF/MPERF. Add support for identifying it and using it within cpufreq. Move the APERF/MPERF functions out of the acpi-cpufreq code and into their own file so they can easily be shared. Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com> LKML-Reference: <20100401141956.GA1930@aftab> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Reviewed-by: Thomas Renninger <trenn@suse.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/mperf.h')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/mperf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/mperf.h b/arch/x86/kernel/cpu/cpufreq/mperf.h
new file mode 100644
index 000000000000..5dbf2950dc22
--- /dev/null
+++ b/arch/x86/kernel/cpu/cpufreq/mperf.h
@@ -0,0 +1,9 @@
+/*
+ * (c) 2010 Advanced Micro Devices, Inc.
+ * Your use of this code is subject to the terms and conditions of the
+ * GNU general public license version 2. See "COPYING" or
+ * http://www.gnu.org/licenses/gpl.html
+ */
+
+unsigned int cpufreq_get_measured_perf(struct cpufreq_policy *policy,
+ unsigned int cpu);