Remove some spurious BUG_ON()'s from the credit scheduler.
authorshand@kneesaa.uk.xensource.com <shand@kneesaa.uk.xensource.com>
Tue, 20 Jun 2006 10:02:49 +0000 (11:02 +0100)
committershand@kneesaa.uk.xensource.com <shand@kneesaa.uk.xensource.com>
Tue, 20 Jun 2006 10:02:49 +0000 (11:02 +0100)
Signed-off-by: Steven Hand <steven@xensource.com>
xen/common/sched_credit.c

index 644aee3f09e341e32e97d05b26e9a8949422978c..3b804cd6441a11916dbe123674967eeef4b145d5 100644 (file)
@@ -967,9 +967,6 @@ csched_load_balance(int cpu, struct csched_vcpu *snext)
         if ( peer_cpu == cpu )
             break;
 
-        BUG_ON( peer_cpu >= csched_priv.ncpus );
-        BUG_ON( peer_cpu == cpu );
-
         /*
          * Get ahold of the scheduler lock for this peer CPU.
          *
@@ -1072,7 +1069,6 @@ csched_schedule(s_time_t now)
     ret.task = snext->vcpu;
 
     CSCHED_VCPU_CHECK(ret.task);
-    BUG_ON( !vcpu_runnable(ret.task) );
 
     return ret;
 }