|
@@ -474,7 +474,7 @@ int ioat_check_space_lock(struct ioatdma_chan *ioat_chan, int num_descs)
|
|
|
if (time_is_before_jiffies(ioat_chan->timer.expires)
|
|
if (time_is_before_jiffies(ioat_chan->timer.expires)
|
|
|
&& timer_pending(&ioat_chan->timer)) {
|
|
&& timer_pending(&ioat_chan->timer)) {
|
|
|
mod_timer(&ioat_chan->timer, jiffies + COMPLETION_TIMEOUT);
|
|
mod_timer(&ioat_chan->timer, jiffies + COMPLETION_TIMEOUT);
|
|
|
- ioat_timer_event((unsigned long)ioat_chan);
|
|
|
|
|
|
|
+ ioat_timer_event(&ioat_chan->timer);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -862,9 +862,9 @@ static void check_active(struct ioatdma_chan *ioat_chan)
|
|
|
mod_timer(&ioat_chan->timer, jiffies + IDLE_TIMEOUT);
|
|
mod_timer(&ioat_chan->timer, jiffies + IDLE_TIMEOUT);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void ioat_timer_event(unsigned long data)
|
|
|
|
|
|
|
+void ioat_timer_event(struct timer_list *t)
|
|
|
{
|
|
{
|
|
|
- struct ioatdma_chan *ioat_chan = to_ioat_chan((void *)data);
|
|
|
|
|
|
|
+ struct ioatdma_chan *ioat_chan = from_timer(ioat_chan, t, timer);
|
|
|
dma_addr_t phys_complete;
|
|
dma_addr_t phys_complete;
|
|
|
u64 status;
|
|
u64 status;
|
|
|
|
|
|