Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1619529

Re: [PATCH] dmaengine: ioat: use setup_timer

From Dan Williams <dan.j.williams@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] dmaengine: ioat: use setup_timer
Date 2017-04-09 20:10 +0200
Message-ID <tuprH-6qM-13@gated-at.bofh.it> (permalink)
References <tua9j-4Jh-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Apr 8, 2017 at 6:41 PM, Geliang Tang <geliangtang@gmail.com> wrote:
> Use setup_timer() instead of init_timer() to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
>  drivers/dma/ioat/init.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
> index cc5259b..6ad4384 100644
> --- a/drivers/dma/ioat/init.c
> +++ b/drivers/dma/ioat/init.c
> @@ -760,9 +760,7 @@ ioat_init_channel(struct ioatdma_device *ioat_dma,
>         dma_cookie_init(&ioat_chan->dma_chan);
>         list_add_tail(&ioat_chan->dma_chan.device_node, &dma->channels);
>         ioat_dma->idx[idx] = ioat_chan;
> -       init_timer(&ioat_chan->timer);
> -       ioat_chan->timer.function = ioat_timer_event;
> -       ioat_chan->timer.data = data;
> +       setup_timer(&ioat_chan->timer, ioat_timer_event, data);
>         tasklet_init(&ioat_chan->cleanup_task, ioat_cleanup_event, data);
>  }
>
> --
> 2.9.3
>

Reviewed-by: Dan Williams <dan.j.williams@intel.com>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] dmaengine: ioat: use setup_timer Geliang Tang <geliangtang@gmail.com> - 2017-04-09 03:50 +0200
  [PATCH] SGI-XP: use setup_timer Geliang Tang <geliangtang@gmail.com> - 2017-04-09 03:50 +0200
  Re: [PATCH] dmaengine: ioat: use setup_timer Dan Williams <dan.j.williams@intel.com> - 2017-04-09 20:10 +0200
  Re: [PATCH] dmaengine: ioat: use setup_timer Vinod Koul <vinod.koul@intel.com> - 2017-04-24 06:10 +0200

csiph-web