[lkml]   [2005]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Add schedule_timeout_{interruptible,uninterruptible}{,_msecs}() interfaces

On Sat, 23 Jul 2005, Nishanth Aravamudan wrote:

> set_current_state(TASK_{,UN}INTERRUPTIBLE);
> schedule_timeout(msecs_to_jiffies(some_constant_msecs));
> just have an interface that allows
> schedule_timeout_msecs_{,un}interruptible(some_constant_msecs);
> and push the jiffies conversion to common code?

What's wrong with just:

The majority of users use a constant, which can already be converted at
compile tile.
Additionally such an interface also had to return a ms value and instead
of that constant conversion, the user is better off to work with jiffies

bye, Roman
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-07-23 19:05    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean