[lkml]   [2004]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: dynamic-hz
    On Mon, 13 Dec 2004, Pavel Machek wrote:
    > > > I'm not sure what the above "scedule_timeout(HZ/10)" is supposed to
    > > > do, but the parameter it gets in 1000hz is "100" so I assume this
    > > > is because we want to wait for 100ms, and in 1000hz that equals
    > > > 100 cycles. Correct?
    > >
    > > `schedule_timeout(HZ/x)' lets it wait for 1/x'th second.
    > ...small problem is that for HZ lower than x it does not wait at all
    > :-(.

    I know. You better use `(HZ+x-1)/x' for delays.
    Integer division can be tricky :-)



    Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    -- Linus Torvalds
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:08    [W:0.018 / U:12.856 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site