4b3e975e4a
The idle loop goes to sleep using the WAIT instruction if !need_resched(). This has is suffering from from a race condition that if if just after need_resched has returned 0 an interrupt might set TIF_NEED_RESCHED but we've just completed the test so go to sleep anyway. This would be trivial to fix by just disabling interrupts during that sequence as in: local_irq_disable(); if (!need_resched()) __asm__("wait"); local_irq_enable(); but the processor architecture leaves it undefined if a processor calling WAIT with interrupts disabled will ever restart its pipeline and indeed some processors have made use of the freedom provided by the architecture definition. This has been resolved and the Config7.WII bit indicates that the use of WAIT is safe on 24K, 24KE and 34K cores. It also is safe on 74K starting revision 2.1.0 so enable the use of WAIT with interrupts disabled for 74K based on a c0_prid of at least that. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> |
||
---|---|---|
.. | ||
arc | ||
au1000 | ||
basler/excite | ||
boot | ||
cobalt | ||
configs | ||
ddb5xxx | ||
dec | ||
emma2rh | ||
gt64120 | ||
jazz | ||
jmr3927 | ||
kernel | ||
lasat | ||
lib | ||
lib-32 | ||
lib-64 | ||
math-emu | ||
mips-boards | ||
mm | ||
momentum | ||
oprofile | ||
pci | ||
philips/pnx8550 | ||
pmc-sierra | ||
qemu | ||
sgi-ip22 | ||
sgi-ip27 | ||
sgi-ip32 | ||
sibyte | ||
sni | ||
tx4927 | ||
tx4938 | ||
vr41xx | ||
defconfig | ||
Kconfig | ||
Kconfig.debug | ||
Makefile |