kb8042: implement kb8042_rsrv() to get out of interrupt context
The kb8042 is streams driver and does push the (translated) key to stream with putnext() call. Since putnext() is commonly used method (it will reduce latency) to pass messages to next module in queue, this will end up with deep stack and in case of kb8042, the whole chain is executing in interrupt context. In worst case this means we are drawing the console FB from interrupt context of kb8042.
We would like to have interrupt routine done fast, so we should putq the message to our read queue and let STREAMS scheduler to handle the queue by calling kb8042_rsrv().
Updated by Electric Monk about 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 2888301ab934162a32ecd126389b2d9ba0ffa01e Author: Toomas Soome <email@example.com> Date: 2019-04-22T19:37:32.000Z 10683 kb8042: implement kb8042_rsrv() to get out of interrupt context Reviewed by: Andy Stormont <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>