]> xenbits.xensource.com Git - xen.git/commitdiff
Fix a race condition for cpufreq dbs timer while S3 resuming
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 17 Mar 2010 09:18:34 +0000 (09:18 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 17 Mar 2010 09:18:34 +0000 (09:18 +0000)
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@intel.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/drivers/cpufreq/cpufreq_ondemand.c

index e85bcdf45d2b2ed4d9d562df197ad32c3e71f560..d4d43f4a34adb22d27ed0a535a7df5fbf5dbb932 100644 (file)
@@ -211,6 +211,7 @@ static void dbs_timer_init(struct cpu_dbs_info_s *dbs_info)
 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]);
 }