IB/ipath: Use time_before()/_after()
[linux-2.6-block.git] / drivers / infiniband / hw / ipath / ipath_sdma.c
index 98ac18ec977e4099f9ee154e8a53353d6206751d..17a517766ad27b822ba1b77780601a44f7219a7e 100644 (file)
@@ -247,7 +247,7 @@ static void sdma_abort_task(unsigned long opaque)
 
        /* ipath_sdma_abort() is done, waiting for interrupt */
        if (status == IPATH_SDMA_ABORT_DISARMED) {
-               if (jiffies < dd->ipath_sdma_abort_intr_timeout)
+               if (time_before(jiffies, dd->ipath_sdma_abort_intr_timeout))
                        goto resched_noprint;
                /* give up, intr got lost somewhere */
                ipath_dbg("give up waiting for SDMADISABLED intr\n");
@@ -341,7 +341,7 @@ resched:
         * JAG - this is bad to just have default be a loop without
         * state change
         */
-       if (jiffies > dd->ipath_sdma_abort_jiffies) {
+       if (time_after(jiffies, dd->ipath_sdma_abort_jiffies)) {
                ipath_dbg("looping with status 0x%08lx\n",
                          dd->ipath_sdma_status);
                dd->ipath_sdma_abort_jiffies = jiffies + 5 * HZ;