ioat: Use time_before_jiffies()
[deliverable/linux.git] / drivers / dma / ioat / dma_v2.c
index 8d1058085eeb85beb3fb2d6ab88c57160ef0cf15..2ce9be498608a4448246acc2a2a8da5c2cefc4de 100644 (file)
@@ -735,7 +735,8 @@ int ioat2_check_space_lock(struct ioat2_dma_chan *ioat, int num_descs)
         * called under bh_disabled so we need to trigger the timer
         * event directly
         */
-       if (jiffies > chan->timer.expires && timer_pending(&chan->timer)) {
+       if (time_is_before_jiffies(chan->timer.expires)
+           && timer_pending(&chan->timer)) {
                struct ioatdma_device *device = chan->device;
 
                mod_timer(&chan->timer, jiffies + COMPLETION_TIMEOUT);
This page took 0.02645 seconds and 5 git commands to generate.