Commented out the contribution of 'urgency' to a class's effective priority
authorAndy Bavier <acb@cs.princeton.edu>
Wed, 27 Oct 2004 21:07:25 +0000 (21:07 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Wed, 27 Oct 2004 21:07:25 +0000 (21:07 +0000)
include/linux/ckrm_sched.h

index 4a06fca..3611c2d 100644 (file)
@@ -361,7 +361,11 @@ static inline int get_effective_prio(ckrm_lrq_t * lrq)
        int prio;
 
        prio = lrq->local_cvt >> CLASS_QUANTIZER;  // cumulative usage
+#ifndef URGENCY_SUPPORT
+#warning "ACB removing urgency calculation from get_effective_prio"
+#else
        prio += lrq->top_priority >> PRIORITY_QUANTIZER; // queue urgency
+#endif
 
        return prio;
 }