Question: 20 microseconds delay
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
Mockern napsal(a):
Quoted 6 lines
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 50000 HZ :). Use udelay.
regards,
Signature · 6 lines
http://www.fi.muni.cz/~xslaby/ Jiri Slaby faculty of informatics, masaryk university, brno, cz e-mail: jirislaby gmail com, gpg pubkey fingerprint: B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E Hnus <[email protected]> is an alias for /dev/null
The problem is that I need to use wait_event_timeout function.
Quoted 11 lines
Mockern napsal(a):
Quoted 6 lines
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 50000 HZ :). Use udelay.
regards,
Signature · 1 line
Яндекс.Почта: объем почтового ящика не ограничен! http://mail.yandex.ru/monitoring/
Do not top-post, please.
Mockern napsal(a):
Quoted 6 lines
Quoted 4 lines
Mockern napsal(a):
Quoted 2 lines
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 50000 HZ :). Use udelay.
The problem is that I need to use
wait_event_timeoutfunction.
Hardly. Place a piece of code here or describe what do you want to achieve.
regards,
Signature · 6 lines
http://www.fi.muni.cz/~xslaby/ Jiri Slaby faculty of informatics, masaryk university, brno, cz e-mail: jirislaby gmail com, gpg pubkey fingerprint: B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E Hnus <[email protected]> is an alias for /dev/null
Am Samstag 03 März 2007 15:20 schrieb Mockern:
Quoted 6 lines
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 usleep(20) instead.
Hans
The problem is that I need to use wait_event_timeout function
Quoted 18 lines
Am Samstag 03 Mдrz 2007 15:20 schrieb Mockern:
Quoted 6 lines
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 usleep(20) instead.
Hans
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 1 line
Сегодня удачный день, чтобы завести почту на Яндексе http://mail.yandex.ru
Quoted 1 line · Mockern
The problem is that I need to use
wait_event_timeoutfunction
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 won't mow your lawn.
Signature · 3 lines
Bill Davidsen <[email protected]> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot