happycube / cxadc-linux3

CX2388x direct ADC capture driver, updated for Linux 3.x+ and 64-bit
81 stars 18 forks source link

Check if signal occured on wake-up #53

Closed rianhunter closed 7 months ago

rianhunter commented 7 months ago

We were not checking the return code of wait_event_interruptible(). This causes excessive CPU spinning when a signal occurs while waiting for more data since the signal is a level-triggered event. This also adds some latency to responding to a signal.

rianhunter commented 7 months ago

Just FYI the change in cxadc_char_open() is necessary to prevent a bug