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
// 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 ?