I finally pull myself together and create a clean FPU/SMP patch. See
the attachment.
After much discussion and experiments, it is clear approach 2) in my
original proposal is the winner. In other words:
. we save the FPU context if process used FPU in the last run
. we restore FPU on next time it uses FPU again
On doing this I also cleaned up a couple of other FPU related places.
This patch only changes linux 2.4 for 32bit MIPS. 64bit MIPS is already
using a similar algorithm. I will extend the patch to 2.5 and 64bit
if there are no further issues.
Jun
021028.new-fpu.patch
Description: Text document
|