The HyperNews
Linux KHG
Discussion Pages
Timer events have interrupt context
Forum:
Block Device Drivers
Re
:
Polled driver for NAND Flash memories
(Mike Cruse)
Keywords:
polled drivers with fake interrupts
Date:
Tue, 01 Jul 1997 21:23:54 GMT
From:
Michael K. Johnson
<
johnsonm@redhat.com
>
Using a timer as a replacement for a non-existant interrupt line is appropriate. In the code where you are polling the hardware, just sleep on an event. From a timer event, wake processes sleeping on the event, which will wake your polling loop.