diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/cevt-r4k.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c index cb46b02e02a5..7274fd2513f9 100644 --- a/arch/mips/kernel/cevt-r4k.c +++ b/arch/mips/kernel/cevt-r4k.c | |||
@@ -28,7 +28,7 @@ static int mips_next_event(unsigned long delta, | |||
28 | cnt = read_c0_count(); | 28 | cnt = read_c0_count(); |
29 | cnt += delta; | 29 | cnt += delta; |
30 | write_c0_compare(cnt); | 30 | write_c0_compare(cnt); |
31 | res = ((long)(read_c0_count() - cnt ) > 0) ? -ETIME : 0; | 31 | res = ((int)(read_c0_count() - cnt) > 0) ? -ETIME : 0; |
32 | #ifdef CONFIG_MIPS_MT_SMTC | 32 | #ifdef CONFIG_MIPS_MT_SMTC |
33 | evpe(vpflags); | 33 | evpe(vpflags); |
34 | local_irq_restore(flags); | 34 | local_irq_restore(flags); |
@@ -196,7 +196,7 @@ static int c0_compare_int_usable(void) | |||
196 | cnt += delta; | 196 | cnt += delta; |
197 | write_c0_compare(cnt); | 197 | write_c0_compare(cnt); |
198 | 198 | ||
199 | while ((long)(read_c0_count() - cnt) <= 0) | 199 | while ((int)(read_c0_count() - cnt) <= 0) |
200 | ; /* Wait for expiry */ | 200 | ; /* Wait for expiry */ |
201 | 201 | ||
202 | if (!c0_compare_int_pending()) | 202 | if (!c0_compare_int_pending()) |