]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[MIPS] Increase cp0 compare clockevent min_delta_ns from 0x30 to 0x300.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2007 10:35:11 +0000 (11:35 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2007 17:23:50 +0000 (18:23 +0100)
Extremly low values are of dubious usefulness anyway but in this case
they actually were killing Qemu which simply wasn't able to complete
mips_next_event() within 0x30 100MHz cycles even on fast hosts.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/time.c

index 5892491b40eb1af7fabcdd6bb13276c58684d404..05b365167a09af87f5a123a5624c8459d755a844 100644 (file)
@@ -421,7 +421,7 @@ void __cpuinit mips_clockevent_init(void)
        cd->mult        = div_sc((unsigned long) mips_freq, NSEC_PER_SEC, 32);
        cd->shift               = 32;
        cd->max_delta_ns        = clockevent_delta2ns(0x7fffffff, cd);
-       cd->min_delta_ns        = clockevent_delta2ns(0x30, cd);
+       cd->min_delta_ns        = clockevent_delta2ns(0x300, cd);
 
        cd->rating              = 300;
        cd->irq                 = irq;