debuggers.hg

changeset 21087:066c3eead6ec

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@intel.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 17 09:18:34 2010 +0000 (2010-03-17)
parents b64a8d2a80ad
children 0d45541c0658
files xen/drivers/cpufreq/cpufreq_ondemand.c
line diff
     1.1 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c	Wed Mar 17 09:17:27 2010 +0000
     1.2 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c	Wed Mar 17 09:18:34 2010 +0000
     1.3 @@ -211,6 +211,7 @@ static void dbs_timer_init(struct cpu_db
     1.4  static void dbs_timer_exit(struct cpu_dbs_info_s *dbs_info)
     1.5  {
     1.6      dbs_info->enable = 0;
     1.7 +    dbs_info->stoppable = 0;
     1.8      stop_timer(&dbs_timer[dbs_info->cpu]);
     1.9  }
    1.10