From: Andrzej Krzysztofowicz <ankry@pg.gda.pl>
To: sebastien.person@sycomore.fr (sebastien person)
Cc: linux-kernel@vger.kernel.org (liste noyau linux)
Subject: Re: [timer] max timeout
Date: Wed, 23 May 2001 16:58:15 +0200 (MET DST) [thread overview]
Message-ID: <200105231458.QAA22388@sunrise.pg.gda.pl> (raw)
In-Reply-To: <20010523162801.38dabdff.sebastien.person@sycomore.fr> from "sebastien person" at May 23, 2001 04:28:01 PM
"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.
> 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
next prev parent reply other threads:[~2001-05-23 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-23 14:28 sebastien person
2001-05-23 14:38 ` Andi Kleen
2001-05-23 14:58 ` Andrzej Krzysztofowicz [this message]
2001-05-25 8:24 ` sebastien person
2001-05-25 20:58 ` george anzinger
2001-05-25 21:26 ` Mark Frazer
2001-05-25 21:45 ` Horst von Brand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200105231458.QAA22388@sunrise.pg.gda.pl \
--to=ankry@pg.gda.pl \
--cc=ankry@green.mif.pg.gda.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=sebastien.person@sycomore.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®