summaryrefslogtreecommitdiff
path: root/xen/arch/x86/acpi/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-09-26 14:05:09 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-09-26 14:05:09 +0100
commitc06a7db0c547b6c5280327f0856019aeb52a7c70 (patch)
tree19885b2f55f40a3367d26a6d3109827787f79049 /xen/arch/x86/acpi/cpufreq/cpufreq.c
parent6b4ce8b388d8d2f174edebff7a5418ca45b882d3 (diff)
X86 and IA64: Update cpufreq statistic logic for supporting both x86
and ia64 Signed-off-by: Yu, Ke <ke.yu@intel.com> Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Diffstat (limited to 'xen/arch/x86/acpi/cpufreq/cpufreq.c')
-rw-r--r--xen/arch/x86/acpi/cpufreq/cpufreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch/x86/acpi/cpufreq/cpufreq.c
index b706d113c9..0798a4c9b1 100644
--- a/xen/arch/x86/acpi/cpufreq/cpufreq.c
+++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c
@@ -307,6 +307,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
struct drv_cmd cmd;
unsigned int next_state = 0; /* Index into freq_table */
unsigned int next_perf_state = 0; /* Index into perf table */
+ unsigned int j;
int result = 0;
if (unlikely(data == NULL ||
@@ -369,7 +370,8 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
if (!check_freqs(cmd.mask, freqs.new, data))
return -EAGAIN;
- cpufreq_statistic_update(cmd.mask, perf->state, next_perf_state);
+ for_each_cpu_mask(j, cmd.mask)
+ cpufreq_statistic_update(j, perf->state, next_perf_state);
perf->state = next_perf_state;
policy->cur = freqs.new;