Re: time_is_after_jiffies misnomer

From: Pavel Machek
Date: Thu Dec 18 2008 - 02:38:50 EST


On Tue 2008-12-16 12:31:41, Peter T. Breuer wrote:
>
> I thought at first that
>
> time_is_after_jiffies(foo)
>
> meant that the current time is later than foo jiffies. In fact, it's
> the reverse! (as far as I can tell! 2.6.26-11).
>
> Can we change this name or provide an alternative? Perhaps
>
> jiffies_is_later_than(foo)
>
> ??

Yes, it is confusing and yes, it should be fixed. Probably by
introducing better names and switching callers to them.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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/