direct-io.hg

changeset 10458:7172935d10d4

Remove some spurious BUG_ON()'s from the credit scheduler.

Signed-off-by: Steven Hand <steven@xensource.com>
author shand@kneesaa.uk.xensource.com
date Tue Jun 20 11:02:49 2006 +0100 (2006-06-20)
parents 1297dc315308
children a31f3bff4f76
files xen/common/sched_credit.c
line diff
     1.1 --- a/xen/common/sched_credit.c	Tue Jun 20 10:25:22 2006 +0100
     1.2 +++ b/xen/common/sched_credit.c	Tue Jun 20 11:02:49 2006 +0100
     1.3 @@ -967,9 +967,6 @@ csched_load_balance(int cpu, struct csch
     1.4          if ( peer_cpu == cpu )
     1.5              break;
     1.6  
     1.7 -        BUG_ON( peer_cpu >= csched_priv.ncpus );
     1.8 -        BUG_ON( peer_cpu == cpu );
     1.9 -
    1.10          /*
    1.11           * Get ahold of the scheduler lock for this peer CPU.
    1.12           *
    1.13 @@ -1072,7 +1069,6 @@ csched_schedule(s_time_t now)
    1.14      ret.task = snext->vcpu;
    1.15  
    1.16      CSCHED_VCPU_CHECK(ret.task);
    1.17 -    BUG_ON( !vcpu_runnable(ret.task) );
    1.18  
    1.19      return ret;
    1.20  }