Re: sparse warning, or why does jifies_to_msecs() return an int?

From: Linus Torvalds
Date: Sat Jan 15 2005 - 13:07:15 EST




On Fri, 14 Jan 2005, David Mosberger wrote:
>
> How about something along the lines of the attached? The test in
> msecs_to_jiffies is non-sensical for HZ>=1000

Hmm.. I don't think your patch is wrong per se, but I do think it's a bit
too subtle. I'd almost rather make "jiffies_to_msecs()" just test for
overflow instead, and that should also fix it.

Linus
-
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/