Re: users of mod_timer_msec()

From: Arjan van de Ven
Date: Sat Jan 02 2010 - 14:17:23 EST


On Sat, 02 Jan 2010 20:11:45 +0100
Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> Arjan van de Ven <arjan@xxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/