ia64/xen-unstable

changeset 19494:e89f7c2b9e0d

Only set scheduler quantum timer for non-idle VCPUs

This removes the last idle periodic timer in xen, and enhances the
idle average C state residency from two-digits ms to three-digit ms.

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Tian Kevin <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 01 15:39:20 2009 +0100 (2009-04-01)
parents 4da7f15e9126
children b5e7c26835c9
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Wed Apr 01 14:04:46 2009 +0100
     1.2 +++ b/xen/common/schedule.c	Wed Apr 01 15:39:20 2009 +0100
     1.3 @@ -818,8 +818,9 @@ static void schedule(void)
     1.4      next = next_slice.task;
     1.5  
     1.6      sd->curr = next;
     1.7 -    
     1.8 -    set_timer(&sd->s_timer, now + r_time);
     1.9 +
    1.10 +    if ( !is_idle_vcpu(next) )
    1.11 +        set_timer(&sd->s_timer, now + r_time);
    1.12  
    1.13      if ( unlikely(prev == next) )
    1.14      {