Re: Question: 20 microseconds delay

2007-03-03 Thread Bill Davidsen
Mockern wrote: The problem is that I need to use wait_event_timeout function AFAIK you can't do that, it's just not the right tool for the job. You can always use a single jiffy and be sure you will wait at least 20us, or use usleep. No matter how much you "need to use" your snowblower, it

Re: Question: 20 microseconds delay

2007-03-03 Thread Jiri Slaby
Do not top-post, please. Mockern napsal(a): Mockern napsal(a): I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? It's subjiffy delay unless you use 5 HZ :). Use udelay. > The problem is that I need to use wait_event_timeout

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function >Am Samstag 03 Mдrz 2007 15:20 schrieb Mockern: >> Hi, >> >> I have a question. >> >> I need to use 20 microsecond delay in my driver. >> What exact jiffies value I should define to get 20 microseconds? > >You can't do it with jiffies

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function. >Mockern napsal(a): >> Hi, >> >> I have a question. >> >> I need to use 20 microsecond delay in my driver. >> What exact jiffies value I should define to get 20 microseconds? > >It's subjiffy delay unless you use 5 HZ :). Use

Re: Question: 20 microseconds delay

2007-03-03 Thread Hans-Jürgen Koch
Am Samstag 03 März 2007 15:20 schrieb Mockern: > Hi, > > I have a question. > > I need to use 20 microsecond delay in my driver. > What exact jiffies value I should define to get 20 microseconds? You can't do it with jiffies as they have 1 millisecond resolution at best. You'd use something like

Re: Question: 20 microseconds delay

2007-03-03 Thread Jiri Slaby
Mockern napsal(a): Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? It's subjiffy delay unless you use 5 HZ :). Use udelay. regards, -- http://www.fi.muni.cz/~xslaby/Jiri Slaby faculty of

Question: 20 microseconds delay

2007-03-03 Thread Mockern
Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? Thank you - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Question: 20 microseconds delay

2007-03-03 Thread Mockern
Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? Thank you - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Question: 20 microseconds delay

2007-03-03 Thread Jiri Slaby
Mockern napsal(a): Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? It's subjiffy delay unless you use 5 HZ :). Use udelay. regards, -- http://www.fi.muni.cz/~xslaby/Jiri Slaby faculty of

Re: Question: 20 microseconds delay

2007-03-03 Thread Hans-Jürgen Koch
Am Samstag 03 März 2007 15:20 schrieb Mockern: Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? You can't do it with jiffies as they have 1 millisecond resolution at best. You'd use something like

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function. Mockern napsal(a): Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? It's subjiffy delay unless you use 5 HZ :). Use udelay. regards,

Re: Question: 20 microseconds delay

2007-03-03 Thread Mockern
The problem is that I need to use wait_event_timeout function Am Samstag 03 Mдrz 2007 15:20 schrieb Mockern: Hi, I have a question. I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? You can't do it with jiffies as they have 1

Re: Question: 20 microseconds delay

2007-03-03 Thread Jiri Slaby
Do not top-post, please. Mockern napsal(a): Mockern napsal(a): I need to use 20 microsecond delay in my driver. What exact jiffies value I should define to get 20 microseconds? It's subjiffy delay unless you use 5 HZ :). Use udelay. The problem is that I need to use wait_event_timeout

Re: Question: 20 microseconds delay

2007-03-03 Thread Bill Davidsen
Mockern wrote: The problem is that I need to use wait_event_timeout function AFAIK you can't do that, it's just not the right tool for the job. You can always use a single jiffy and be sure you will wait at least 20us, or use usleep. No matter how much you need to use your snowblower, it