Wei, Gang
2010-Mar-17 08:59 UTC
[Xen-devel] [PATCH]Fix a racing condition for cpufreq dbs timer while S3 resuming
Fix a racing 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> diff -r c1f272c3a441 xen/drivers/cpufreq/cpufreq_ondemand.c --- a/xen/drivers/cpufreq/cpufreq_ondemand.c Mon Mar 15 17:08:29 2010 +0000 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c Wed Mar 17 16:40:22 2010 +0800 @@ -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-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel