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

[Xen-changelog] [xen-3.4-testing] Fix a race condition for cpufreq dbs timer while S3 resuming



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1269429418 0
# Node ID 458b7bd1267459be204e85cdab716ca109085fbc
# Parent  5386459a2c33d41d81a15027bed7f28b3b39f112
Fix a race condition for cpufreq dbs timer while S3 resuming

The cpufreq_dbs_timer_suspend/resume may race with dbs_timer_init
while s3 resuming before this patch.
This patch along with cset 21030 fix the bug 1586
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1586.

Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>
Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
xen-unstable changeset:   21041:066c3eead6ec
xen-unstable date:        Wed Mar 17 09:18:34 2010 +0000
---
 xen/drivers/cpufreq/cpufreq_ondemand.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 5386459a2c33 -r 458b7bd12674 xen/drivers/cpufreq/cpufreq_ondemand.c
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c    Wed Mar 24 11:15:48 2010 +0000
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c    Wed Mar 24 11:16:58 2010 +0000
@@ -202,6 +202,7 @@ static void dbs_timer_exit(struct cpu_db
 static void dbs_timer_exit(struct cpu_dbs_info_s *dbs_info)
 {
     dbs_info->enable = 0;
+    dbs_info->stoppable = 0;
     stop_timer(&dbs_timer[dbs_info->cpu]);
 }
 

_______________________________________________
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®.