aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/acpi
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-04-09 08:53:53 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-04-09 08:53:53 +0100
commit38c0598f9c61f5be0174657eea6fb0f689c40778 (patch)
tree3056ac98168ee33d9b73f3a5344ddce0609d4f68 /xen/include/acpi
parenta6adb8aa62960abf0722099bc527637bd068099e (diff)
downloadxen-38c0598f9c61f5be0174657eea6fb0f689c40778.tar.gz
xen-38c0598f9c61f5be0174657eea6fb0f689c40778.tar.bz2
xen-38c0598f9c61f5be0174657eea6fb0f689c40778.zip
Add support for AMD MPERF/APERF
Starting with Family 0x10, model 10 processors, some AMD processors will have support for the APERF/MPERF MSRs. This patch adds the checks necessary to support those MSRs. It also makes the get_measured_perf function defined inside cpufreq.c driver independent. max_freq is taken from the policy definition instead of being a private argument in struct acpi_cpufreq_data. The struct member is entirely removed from the function since it is no longer used. Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Diffstat (limited to 'xen/include/acpi')
-rw-r--r--xen/include/acpi/cpufreq/cpufreq.h1
-rw-r--r--xen/include/acpi/cpufreq/processor_perf.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/acpi/cpufreq/cpufreq.h b/xen/include/acpi/cpufreq/cpufreq.h
index 53c9a0d314..662c1bd3d4 100644
--- a/xen/include/acpi/cpufreq/cpufreq.h
+++ b/xen/include/acpi/cpufreq/cpufreq.h
@@ -29,7 +29,6 @@ struct cpufreq_governor;
struct acpi_cpufreq_data {
struct processor_performance *acpi_data;
struct cpufreq_frequency_table *freq_table;
- unsigned int max_freq;
unsigned int cpu_feature;
};
diff --git a/xen/include/acpi/cpufreq/processor_perf.h b/xen/include/acpi/cpufreq/processor_perf.h
index 40b3a7103b..0728dbe8c3 100644
--- a/xen/include/acpi/cpufreq/processor_perf.h
+++ b/xen/include/acpi/cpufreq/processor_perf.h
@@ -9,6 +9,7 @@
int get_cpu_id(u8);
int powernow_cpufreq_init(void);
unsigned int powernow_register_driver(void);
+unsigned int get_measured_perf(unsigned int cpu, unsigned int flag);
void cpufreq_residency_update(unsigned int, uint8_t);
void cpufreq_statistic_update(unsigned int, uint8_t, uint8_t);
int cpufreq_statistic_init(unsigned int);