lkml.org 
[lkml]   [2003]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2.{4,5}.x] mod_timer fix for sch_htb.c
    From
    Date
    sch_htb.c: trivial {del,add}_timer to mod_timer conversion.

    --- linux-2.5.68/net/sched/sch_htb.c 2003-04-21 10:14:44.000000000 +0530
    +++ linux-2.5.68-nvk/net/sched/sch_htb.c 2003-05-03 14:41:36.000000000 +0530
    @@ -975,9 +975,7 @@
    printk(KERN_INFO "HTB delay %ld > 5sec\n", delay);
    delay = 5*HZ;
    }
    - del_timer(&q->timer);
    - q->timer.expires = jiffies + delay;
    - add_timer(&q->timer);
    + mod_timer(&q->timer, jiffies + delay);
    sch->flags |= TCQ_F_THROTTLED;
    sch->stats.overlimits++;
    HTB_DBG(3,1,"htb_deq t_delay=%ld\n",delay);


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:35    [W:0.031 / U:30.056 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site