X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Fmips%2Fkernel%2Ftime.c;h=13ff4da598cdfbcff3b2d34677c0e89cd3b55e28;hb=5006ecc2d5073d4e52f54381fd0fee1575d4ce22;hp=5e51a2d8f3f0712072e59a2a53f01a46b9880453;hpb=bac30d1a78d0f11c613968fc8b351a91ed465386;p=powerpc.git diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index 5e51a2d8f3..13ff4da598 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c @@ -116,8 +116,7 @@ static void c0_timer_ack(void) write_c0_compare(expirelo); /* Check to see if we have missed any timer interrupts. */ - count = read_c0_count(); - if ((count - expirelo) < 0x7fffffff) { + while (((count = read_c0_count()) - expirelo) < 0x7fffffff) { /* missed_timer_count++; */ expirelo = count + cycles_per_jiffy; write_c0_compare(expirelo);