Re: [PATCH] Add schedule_timeout_{interruptible,uninterruptible}{,_msecs}()interfaces

From: Roman Zippel
Date: Sat Jul 23 2005 - 12:19:10 EST


Hi,

On Sat, 23 Jul 2005, Nishanth Aravamudan wrote:

> > Keep the thing as simple as possible and jiffies _are_ simple. Please show
> > me the problem, that needs to be fixed.
>
> I am not sure why jiffies are any simpler than milliseconds. In the
> millisecond case, conversion happens in common code and only needs to be
> audited once. In the jiffies case, I have to check *every* caller to see
> if they are doing stupid math :)

Jiffies are the basic time unit for kernel timers, hiding that fact gives
users only wrong expectations about them.
I don't mind using helper functions, but constant conversion can already
happen at compile time and for variable timeouts the user should seriously
consider using jiffies directly instead of constantly converting time
values.

bye, Roman
-
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/