Skip to content

Commit

Permalink
[MIPS] Increase cp0 compare clockevent min_delta_ns from 0x30 to 0x300.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ralfbaechle committed Oct 16, 2007
1 parent 64bfca5 commit 8bb00d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bb00d8

Please sign in to comment.