You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: move bottom half work from tasklet to workqueue to avoid sleeping in atomic context
Based on issue #191 (@trulykyle)'s feedback, the original bottomhalf.c example was calling msleep() inside a tasklet,
which runs in atomic context and can lead to a kernel crash. This patch moves the time-consuming work to a workqueue,
which runs in process context and allows sleeping, while preserving the immediate LED control logic in the ISR.
0 commit comments