Wei, Gang
2010-Mar-26 09:37 UTC
[Xen-devel] [PATCH]cpufreq: don''t re-init active dbs timer in S3 or cpu online
cpufreq: don''t re-init active dbs timer in S3 or cpu online Signed-off-by: Wei Gang <gang.wei@intel.com> diff -r 84da3d0314cd xen/drivers/cpufreq/cpufreq_ondemand.c --- a/xen/drivers/cpufreq/cpufreq_ondemand.c Thu Mar 25 18:29:27 2010 +0800 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c Fri Mar 26 16:16:57 2010 +0800 @@ -196,8 +196,9 @@ static void dbs_timer_init(struct cpu_db { dbs_info->enable = 1; - init_timer(&dbs_timer[dbs_info->cpu], do_dbs_timer, - (void *)dbs_info, dbs_info->cpu); + if ( !dbs_timer[dbs_info->cpu].function ) + init_timer(&dbs_timer[dbs_info->cpu], do_dbs_timer, + (void *)dbs_info, dbs_info->cpu); set_timer(&dbs_timer[dbs_info->cpu], NOW()+dbs_tuners_ins.sampling_rate); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel