imx28 kernel time stamp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx28 kernel time stamp

461 Views
shashikanthirem
Contributor III

Hi All.

i need to timer expiry calculation in micro sec, whose value is feed by user space using ioctl, but want to whats the best way to timestamp which is used in IRQ calls for example

serial_IRQ....{

// read byte for every byte

// get time stamp in usec ...???

}

1. this should take care of roll over

2. i am  using a do_gettimeofday() will it delay the irq ?

Labels (2)
0 Kudos
1 Reply

393 Views
igorpadykov
NXP Employee
NXP Employee

Hi shashikant

one can look at answers provided on

i.mx28 system timer/clock problem 

c - reading the timestamp from kernel using procfs - where is it stored after reading from kernel? -... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos