diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-19 10:21:04 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-20 16:35:51 -0400 |
commit | 201700d3544c653d453716a60976efe1987110af (patch) | |
tree | 8052fb09ac170b6de4b28737f89cb2621fac4fe7 /drivers/media/video/ivtv/ivtv-irq.c | |
parent | fe06fe0a4d0f781f8ae0570e4d7e517a81878c1d (diff) |
V4L/DVB (5865): Remove usage of HZ on ivtv driver, replacing by msecs_to_jiffies
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-irq.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-irq.c b/drivers/media/video/ivtv/ivtv-irq.c index 1a3ee464a826..14f35df05fa2 100644 --- a/drivers/media/video/ivtv/ivtv-irq.c +++ b/drivers/media/video/ivtv/ivtv-irq.c | |||
@@ -420,7 +420,7 @@ static void ivtv_dma_enc_start(struct ivtv_stream *s) | |||
420 | write_reg_sync(read_reg(IVTV_REG_DMAXFER) | 0x02, IVTV_REG_DMAXFER); | 420 | write_reg_sync(read_reg(IVTV_REG_DMAXFER) | 0x02, IVTV_REG_DMAXFER); |
421 | set_bit(IVTV_F_I_DMA, &itv->i_flags); | 421 | set_bit(IVTV_F_I_DMA, &itv->i_flags); |
422 | itv->cur_dma_stream = s->type; | 422 | itv->cur_dma_stream = s->type; |
423 | itv->dma_timer.expires = jiffies + HZ / 10; | 423 | itv->dma_timer.expires = jiffies + msecs_to_jiffies(100); |
424 | add_timer(&itv->dma_timer); | 424 | add_timer(&itv->dma_timer); |
425 | } | 425 | } |
426 | } | 426 | } |
@@ -437,7 +437,7 @@ static void ivtv_dma_dec_start(struct ivtv_stream *s) | |||
437 | write_reg_sync(read_reg(IVTV_REG_DMAXFER) | 0x01, IVTV_REG_DMAXFER); | 437 | write_reg_sync(read_reg(IVTV_REG_DMAXFER) | 0x01, IVTV_REG_DMAXFER); |
438 | set_bit(IVTV_F_I_DMA, &itv->i_flags); | 438 | set_bit(IVTV_F_I_DMA, &itv->i_flags); |
439 | itv->cur_dma_stream = s->type; | 439 | itv->cur_dma_stream = s->type; |
440 | itv->dma_timer.expires = jiffies + HZ / 10; | 440 | itv->dma_timer.expires = jiffies + msecs_to_jiffies(100); |
441 | add_timer(&itv->dma_timer); | 441 | add_timer(&itv->dma_timer); |
442 | } | 442 | } |
443 | 443 | ||