Skip to content

Commit 8bb00d8

Browse files
committed
[MIPS] Increase cp0 compare clockevent min_delta_ns from 0x30 to 0x300.
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>
1 parent 64bfca5 commit 8bb00d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/mips/kernel/time.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ void __cpuinit mips_clockevent_init(void)
421421
cd->mult = div_sc((unsigned long) mips_freq, NSEC_PER_SEC, 32);
422422
cd->shift = 32;
423423
cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd);
424-
cd->min_delta_ns = clockevent_delta2ns(0x30, cd);
424+
cd->min_delta_ns = clockevent_delta2ns(0x300, cd);
425425

426426
cd->rating = 300;
427427
cd->irq = irq;

0 commit comments

Comments
 (0)