]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
xen/sched: remove pointless BUG_ON() in credit2
authorJuergen Gross <jgross@suse.com>
Tue, 11 Feb 2020 09:44:18 +0000 (10:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 11 Feb 2020 10:55:38 +0000 (10:55 +0000)
The BUG_ON() at the top of csched2_context_saved() is completely
pointless, as the ASSERT() just following it catches the same problem
already.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched/credit2.c

index 231f87d9602229ede34e82fc567060e6ae36b13d..f2752f27e29e52dd3dbe403ad580de2645957090 100644 (file)
@@ -2167,8 +2167,6 @@ csched2_context_saved(const struct scheduler *ops, struct sched_unit *unit)
     s_time_t now = NOW();
     LIST_HEAD(were_parked);
 
-    BUG_ON( !is_idle_unit(unit) &&
-            svc->rqd != c2rqd(ops, sched_unit_master(unit)));
     ASSERT(is_idle_unit(unit) ||
            svc->rqd == c2rqd(ops, sched_unit_master(unit)));