Messages in this thread | | | Date | Fri, 25 May 2001 10:24:34 +0200 | From | sebastien person <> | Subject | Re: [timer] max timeout |
| |
Le Wed, 23 May 2001 16:58:15 +0200 (MET DST) Andrzej Krzysztofowicz <ankry@pg.gda.pl> a ecrit :
> "sebastien person wrote:" > > Is it bad to do the following call ? > > > > mod_timer(&timer, jiffies+(0.1*HZ)); > > Yes, it is bad. Don't use floating point in the kernel if you don't need.
So, there is a good solution to fire the timer after 100 ms ? And is there any max limitation on the expires value ?
e.g. what is the biggest time period we could have between timer call and the execution of the timer function ?
> > > that might fire the timer 1/10 second later. > > HZ/10 is much better ... > > -- > ======================================================================= > Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl > phone (48)(58) 347 14 61 > Faculty of Applied Phys. & Math., Technical University of Gdansk > - > 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/ - 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/
| |