[Top] [All Lists]

Re: used_math not cleared for new processes?

To: Zhang Fuxin <>
Subject: Re: used_math not cleared for new processes?
From: Jun Sun <>
Date: Wed, 27 Feb 2002 14:53:07 -0800
Cc: "" <>
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1
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?


<Prev in Thread] Current Thread [Next in Thread>