diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-03-17 09:18:34 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-03-17 09:18:34 +0000 |
commit | cdffe59f087dafab9ff12f6c8c2be4e67e848342 (patch) | |
tree | 7b78c750e09b865f7ff813567263ae06c640b3f3 /xen/drivers/cpufreq | |
parent | 5a4d4554c3014ceaab8f3b21f3357ce7200956e3 (diff) | |
download | xen-cdffe59f087dafab9ff12f6c8c2be4e67e848342.tar.gz xen-cdffe59f087dafab9ff12f6c8c2be4e67e848342.tar.bz2 xen-cdffe59f087dafab9ff12f6c8c2be4e67e848342.zip |
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>
Diffstat (limited to 'xen/drivers/cpufreq')
-rw-r--r-- | xen/drivers/cpufreq/cpufreq_ondemand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/drivers/cpufreq/cpufreq_ondemand.c b/xen/drivers/cpufreq/cpufreq_ondemand.c index e85bcdf45d..d4d43f4a34 100644 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c @@ -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]); } |