I would like a processor independent solution. I figured out cpu_frquency/HZ *2 should give me the answer. Regards, Asim On 3/5/09, Sandeep K Sinha <sandeepksinha@xxxxxxxxx> wrote: > Look for such informations in > > /proc/cpuinfo > > On Thu, Mar 5, 2009 at 11:53 AM, Mulyadi Santosa > <mulyadi.santosa@xxxxxxxxx> wrote: >> hi... >> >> On Thu, Mar 5, 2009 at 12:50 AM, Asim <linkasim@xxxxxxxxx> wrote: >>> Hi, >>> >>> I would like to wait in a while loop for two clock ticks. I was >>> wondering how do I do this. I do not want to use jiffies since >>> interrupts may be disabled in this loop. Any help? >> >> assumming your processor running constantly (no processor frequency >> changing such as using frequency governor), perhaps you can use this >> idea: >> >> check how many empty loops are done when two ticks are done. then use >> it loop as many as two ticks. >> >> regards, >> >> Mulyadi. >> >> -- >> To unsubscribe from this list: send an email with >> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx >> Please read the FAQ at http://kernelnewbies.org/FAQ >> >> > > > > -- > Regards, > Sandeep. > > > > > > > “To learn is to change. Education is a process that changes the learner.” > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ