ia64/xen-unstable

changeset 19514:3881da2d25ec

cpufreq: align dbs timer for better package C state residency

Signed-off-by: Yu Ke <ke.yu@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 07 10:43:27 2009 +0100 (2009-04-07)
parents 5c69f98c348e
children 1ff30ca70186
files xen/drivers/cpufreq/cpufreq_ondemand.c
line diff
     1.1 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c	Tue Apr 07 10:15:25 2009 +0100
     1.2 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c	Tue Apr 07 10:43:27 2009 +0100
     1.3 @@ -178,7 +178,8 @@ static void do_dbs_timer(void *dbs)
     1.4  
     1.5      dbs_check_cpu(dbs_info);
     1.6  
     1.7 -    set_timer(&dbs_timer[dbs_info->cpu], NOW()+dbs_tuners_ins.sampling_rate);
     1.8 +    set_timer(&dbs_timer[dbs_info->cpu],
     1.9 +            align_timer(NOW() , dbs_tuners_ins.sampling_rate));
    1.10  }
    1.11  
    1.12  static void dbs_timer_init(struct cpu_dbs_info_s *dbs_info)