lkml.org 
[lkml]   [2010]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/11] x86: Merge __save_init_fpu()
    Date
    __save_init_fpu() is identical for 32-bit and 64-bit.

    Signed-off-by: Brian Gerst <brgerst@gmail.com>
    ---
    arch/x86/include/asm/i387.h | 11 ++---------
    1 files changed, 2 insertions(+), 9 deletions(-)

    diff --git a/arch/x86/include/asm/i387.h b/arch/x86/include/asm/i387.h
    index 5d8f9a7..88065e3 100644
    --- a/arch/x86/include/asm/i387.h
    +++ b/arch/x86/include/asm/i387.h
    @@ -197,12 +197,6 @@ static inline void fpu_save_init(struct fpu *fpu)
    fpu_clear(fpu);
    }

    -static inline void __save_init_fpu(struct task_struct *tsk)
    -{
    - fpu_save_init(&tsk->thread.fpu);
    - task_thread_info(tsk)->status &= ~TS_USEDFPU;
    -}
    -
    #else /* CONFIG_X86_32 */

    #ifdef CONFIG_MATH_EMULATION
    @@ -285,15 +279,14 @@ end:
    ;
    }

    +#endif /* CONFIG_X86_64 */
    +
    static inline void __save_init_fpu(struct task_struct *tsk)
    {
    fpu_save_init(&tsk->thread.fpu);
    task_thread_info(tsk)->status &= ~TS_USEDFPU;
    }

    -
    -#endif /* CONFIG_X86_64 */
    -
    static inline int fpu_fxrstor_checking(struct fpu *fpu)
    {
    return fxrstor_checking(&fpu->state->fxsave);
    --
    1.7.2.2


    \
     
     \ /
      Last update: 2010-08-28 18:09    [W:0.021 / U:0.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site