[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] x86: Fix a few on_{selected, each}_cpus callers who should wait for completion.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273743539 -3600
# Node ID 0d699edcd3d476a0a6ee28848cf13ceba4726441
# Parent  595003757412734952b1577fc4f5820275bd3563
x86: Fix a few on_{selected,each}_cpus callers who should wait for completion.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21372:6c22d2dfed48
xen-unstable date:        Thu May 13 09:44:20 2010 +0100
---
 xen/arch/x86/acpi/cpufreq/cpufreq.c  |    2 +-
 xen/arch/x86/acpi/cpufreq/powernow.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 595003757412 -r 0d699edcd3d4 xen/arch/x86/acpi/cpufreq/cpufreq.c
--- a/xen/arch/x86/acpi/cpufreq/cpufreq.c       Thu May 13 10:33:38 2010 +0100
+++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c       Thu May 13 10:38:59 2010 +0100
@@ -195,7 +195,7 @@ static void drv_write(struct drv_cmd *cm
         cpu_isset(smp_processor_id(), cmd->mask))
         do_drv_write((void *)cmd);
     else
-        on_selected_cpus( cmd->mask, do_drv_write, (void *)cmd, 0, 0);
+        on_selected_cpus( cmd->mask, do_drv_write, (void *)cmd, 0, 1);
 }
 
 static u32 get_cur_val(cpumask_t mask)
diff -r 595003757412 -r 0d699edcd3d4 xen/arch/x86/acpi/cpufreq/powernow.c
--- a/xen/arch/x86/acpi/cpufreq/powernow.c      Thu May 13 10:33:38 2010 +0100
+++ b/xen/arch/x86/acpi/cpufreq/powernow.c      Thu May 13 10:38:59 2010 +0100
@@ -122,7 +122,7 @@ static int powernow_cpufreq_target(struc
 
     cmd.val = next_perf_state;
 
-    on_selected_cpus( cmd.mask, transition_pstate, (void *) &cmd, 0, 0);
+    on_selected_cpus( cmd.mask, transition_pstate, (void *) &cmd, 0, 1);
 
     for_each_cpu_mask(j, online_policy_cpus)
         cpufreq_statistic_update(j, perf->state, next_perf_state);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.