Actions
Bug #10683
closedkb8042: implement kb8042_rsrv() to get out of interrupt context
Start date:
2019-04-03
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
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 over 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit 2888301ab934162a32ecd126389b2d9ba0ffa01e
commit 2888301ab934162a32ecd126389b2d9ba0ffa01e Author: Toomas Soome <tsoome@me.com> Date: 2019-04-22T19:37:32.000Z 10683 kb8042: implement kb8042_rsrv() to get out of interrupt context Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com>
Actions