From: Arjan van de Ven <arjan@infradead.org>
To: Andi Kleen <andi@firstfloor.org>
Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org
Subject: Re: users of mod_timer_msec()
Date: Sat, 2 Jan 2010 11:19:46 -0800 [thread overview]
Message-ID: <20100102111946.045611b6@infradead.org> (raw)
In-Reply-To: <877hs0724u.fsf@basil.nowhere.org>
On Sat, 02 Jan 2010 20:11:45 +0100
Andi Kleen <andi@firstfloor.org> wrote:
> Arjan van de Ven <arjan@infradead.org> writes:
>
> > emp->activity++;
> > if (!timer_pending(&emp->timer))
> > - mod_timer(&emp->timer, jiffies +
> > msecs_to_jiffies(10));
> > + mod_timer_msec(&emp->timer, 10);
>
> ... but your original patch does
>
> +int mod_timer_msec(struct timer_list *timer, unsigned long delay_ms)
> +{
> + return mod_timer(timer, msecs_to_jiffies(delay_ms));
>
eh last minute typo
this is supposed to be jiffies + msecs_to_jiffies()
good catch; thanks!
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
next prev parent reply other threads:[~2010-01-02 19:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-02 18:48 [PATCH] timer: Introduce mod_timer_msec() Arjan van de Ven
2010-01-02 18:50 ` users of mod_timer_msec() Arjan van de Ven
2010-01-02 19:11 ` Andi Kleen
2010-01-02 19:19 ` Arjan van de Ven [this message]
2010-01-02 19:21 ` [PATCH v2] timer: Introduce mod_timer_msec() Arjan van de Ven
2010-01-02 19:30 ` Dmitry Torokhov
2010-01-02 19:36 ` Arjan van de Ven
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=20100102111946.045611b6@infradead.org \
--to=arjan@infradead.org \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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®