]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/mips/kernel/cevt-r4k.c
MIPS: Fix CP0 COUNTER clockevent race
[~shefty/rdma-dev.git] / arch / mips / kernel / cevt-r4k.c
index 2f4d7a99bcc2fcc91b3838599b0b0c3d4fb1c432..98c5a9737c14d2c200a161640122f9a8af053e88 100644 (file)
@@ -32,7 +32,7 @@ static int mips_next_event(unsigned long delta,
        cnt = read_c0_count();
        cnt += delta;
        write_c0_compare(cnt);
-       res = ((int)(read_c0_count() - cnt) > 0) ? -ETIME : 0;
+       res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0;
        return res;
 }