AnsweredAssumed Answered

imx28 kernel time stamp

Question asked by shashikant h on Mar 8, 2020
Latest reply on Mar 9, 2020 by igorpadykov

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 ?

Outcomes