blk-throttle: simpfy low limit reached check in throtl_tg_can_upgrade
[linux-2.6-microblaze.git] / kernel / latencytop.c
index 76166df..7812490 100644 (file)
@@ -112,7 +112,7 @@ static void __sched
 account_global_scheduler_latency(struct task_struct *tsk,
                                 struct latency_record *lat)
 {
-       int firstnonnull = MAXLR + 1;
+       int firstnonnull = MAXLR;
        int i;
 
        /* skip kernel threads for now */
@@ -150,7 +150,7 @@ account_global_scheduler_latency(struct task_struct *tsk,
        }
 
        i = firstnonnull;
-       if (i >= MAXLR - 1)
+       if (i >= MAXLR)
                return;
 
        /* Allocted a new one: */