Re: [RFC] FPU context switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 17, 2002 at 12:03:10PM -0700, Greg Lindahl wrote:
> On Tue, Sep 17, 2002 at 11:48:31AM -0700, Jun Sun wrote:
> 
> > I think this gives a big performance improvement because most processes
> > don't use FPU during their runs but they all have used_math flag set!
> 
> Jun,
> 
> You really ought to prove that first. Many people spend a lot of time
> optimizing things that aren't important. If it isn't important, than
> the simplest scheme is the best choice.

Oh, he's quite correct.  There's a setjmp() early in the execution
path, and it saves FP registers on machines with FP support configured
on.  So tasks are marked as FPU users.

I've never thought of a terribly good way around this.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux