Re: time_is_after_jiffies misnomer

From: Pekka Enberg
Date: Tue Dec 16 2008 - 11:13:45 EST


On Tue, Dec 16, 2008 at 6:04 PM, Peter T. Breuer <ptb@xxxxxxxxxxxxxx> wrote:
> The kernel's
>
> time_is_after_jiffies(500)
>
> macro mathematically means
>
> the current value of the jiffies variable is LESS THAN 500

Not that you would ever do something like that. Instead, you will see
something like this if you grep the kernel sources a bit:

time_is_after_jiffies(jiffies + 500)

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