Re: waiting 2ms in a device driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Try and use a hardware timer if one is available. In case it is not 
available, try using a udelay.

Most probably the processor will be having some timers for this purpose.
(In strongarm we have the OS** registers which can be used for this 
purpose).

Regards
Ramki.


Felipe W Damasio wrote:
> On Tue, 20 Aug 2002 14:30:10 +0200
> Knopp Maximilien <maximilien.knopp@fr.thalesgroup.com> wrote:
> 
> KM> In a linux device driver, I have to do a 2ms pause
> KM> and I don't know how to do that.
> KM> 
> KM> I work on a IBM PowerPC processor.
> 
> 	mdelay (2);
> 
> Felipe
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux