<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi,<div>I have a question about timers in the linux kernel. I'm working with an embedded ARM processor (pxa-x270) and linux kernel version 2.6.16. One of the drivers I'm writing needs 1ms timing accuracy and I found I could achieve this using kernel timers and changing the value of HZ to 1000 (the default is 100).</div>
<div><br></div><div>However, I now find that mdelay and udelay etc. don't give the correct delays. This causes a problem in one of the other drivers I have, but I'm also worried that other code within the kernel may have broken aswell.</div>
<div><br></div><div>How do I fix the delays so that they still work? Or am I going about this in completely the wrong way - is there a better way for me to get 1ms resolution timers in the kernel?</div><div><br></div><div>
Thanks,</div><div><br></div><div>Robert Garrett</div></span>