> This implementation worked for a while until I discover a Hardware
> problem.
> Sometimes the hardware fails to generate the interrupt.
>
> So I changed:
> schedule(); to schedule_timeout(1);
>
> But 1 jiffie (0.1 secs) is too long!
A jiffy is 0.01 secs (or 1/1024 secs on Alpha).
> Is there a way to specify a timeout value of 100 microseconds?
It's not uncommon just to busy wait for that amount of time:
usleep(100);
> This is the last one:
> Can I count the time with a higher precision than with jiffies?
> I need to keep track of the time on every read, but a jiffie is too
> slow.
You can use the TSC, but that screws up portability.
Matthew.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/