Re: how to use wait_event_interruptible_timeout with less than 1 jiffie timeout?

2016-01-20 Thread Nicholas Mc Guire
On Wed, Jan 20, 2016 at 06:57:27PM +0530, Anupam Kapoor wrote: > > > [2016-01-20T13:55:54+0530]: "Nicholas Mc Guire" (Nicholas): > ,[ Nicholas ] > | that would still have the same limitation with resepct to time granuarlity > | and as Documentation/timers/ > ` > ah yes, that's true. >

Re: how to use wait_event_interruptible_timeout with less than 1 jiffie timeout?

2016-01-20 Thread Nicholas Mc Guire
On Wed, Jan 20, 2016 at 11:50:24AM +0530, Anupam Kapoor wrote: > > > [2016-01-20T01:21:18+0530]: "Daniel." (Daniel): > ,[ Daniel ] > | I have some code that convert an timeout comming from userspace (in > | ms) to jiffies prior passing to wait_event_interrupitible_timeout(). > | The code

Re: how to use wait_event_interruptible_timeout with less than 1 jiffie timeout?

2016-01-20 Thread Anupam Kapoor
> [2016-01-20T13:55:54+0530]: "Nicholas Mc Guire" (Nicholas): ,[ Nicholas ] | that would still have the same limitation with resepct to time granuarlity | and as Documentation/timers/ ` ah yes, that's true. ,[ Nicholas ] | if you really need very short delays then you will need

how to use wait_event_interruptible_timeout with less than 1 jiffie timeout?

2016-01-19 Thread Daniel.
Hi everybody, I have some code that convert an timeout comming from userspace (in ms) to jiffies prior passing to wait_event_interrupitible_timeout(). The code looks like this: unsigned long tout = user.timeout * HZ / 1000; /* convert from ms to jiffie */ int status =

Re: how to use wait_event_interruptible_timeout with less than 1 jiffie timeout?

2016-01-19 Thread Anupam Kapoor
> [2016-01-20T01:21:18+0530]: "Daniel." (Daniel): ,[ Daniel ] | I have some code that convert an timeout comming from userspace (in | ms) to jiffies prior passing to wait_event_interrupitible_timeout(). | The code looks like this: | | unsigned long tout = user.timeout * HZ / 1000; /*