Re: used_math not cleared for new processes?

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

 



Zhang Fuxin wrote:

> hi,linux-mips,
>    I find that current->used_math isn't cleared when we start a new process.Is it
> intended? I mean 'start_thread' in do_exec but not 'copy_thread' in do_fork when
> speaking 'start a new process'. We can/should? keep used_math for the latter,but for
> the former?
> 


I think it make sense to clear used_math in do_exec().  It also improvies the
 performance slightly by not loading the parent's FPU context when it uses the
FPU for the first time.

Do you have a patch for this?

Jun


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

  Powered by Linux