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

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



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1268817514 0
# Node ID 066c3eead6ec4059b15951da6edc407066a87b48
# Parent  b64a8d2a80ad69b57e68c299009ba2cbe3ed43d0
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/drivers/cpufreq/cpufreq_ondemand.c |    1 +
 1 files changed, 1 insertion(+)

diff -r b64a8d2a80ad -r 066c3eead6ec xen/drivers/cpufreq/cpufreq_ondemand.c
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c    Wed Mar 17 09:17:27 2010 +0000
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c    Wed Mar 17 09:18:34 2010 +0000
@@ -211,6 +211,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®.