tdc: update the size of the buffer and the semaphore with *_interruptible

Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
parent 053bdff1
......@@ -99,7 +99,7 @@
/* Constants */
#define TDC_CHAN_NUMBER 5
#define TDC_EVENT_BUFFER_SIZE 1024
#define TDC_EVENT_BUFFER_SIZE 256
#define TDC_EVENT_CHANNEL_MASK 0x3
#define TDC_EVENT_DACAPO_FLAG BIT(0)
......
......@@ -224,7 +224,8 @@ static int tdc_zio_raw_io(struct zio_cset *cset)
chan = cset->index - 1;
/* Wait for data */
down(&tdc->event[chan].lock);
if(down_interruptible(&tdc->event[chan].lock))
return -ERESTARTSYS;
/* Check if we have read this data before */
/* XXX: change it if we have more data or use a mutex */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment