[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] 2.6.11-rc3 used_math changes
Bring the Xen code in line with the used_math changes in 2.6.11-rc3. Signed-off-by: Rik van Riel <riel@xxxxxxxxxx> --- linux-2.6.10/arch/xen/i386/kernel/cpu/common.c.usedmath 2005-02-07 13:40:24.364313822 -0500 +++ linux-2.6.10/arch/xen/i386/kernel/cpu/common.c 2005-02-07 13:40:59.139055752 -0500 @@ -596,7 +596,7 @@ void __init cpu_init (void) * Force FPU initialization: */ current_thread_info()->status = 0; - current->used_math = 0; + clear_used_math(); mxcsr_feature_mask_init(); } --- linux-2.6.10/arch/xen/i386/kernel/process.c.usedmath 2005-02-07 13:40:24.366313462 -0500 +++ linux-2.6.10/arch/xen/i386/kernel/process.c 2005-02-07 13:41:43.178137593 -0500 @@ -297,7 +297,7 @@ void flush_thread(void) * Forget coprocessor state.. */ clear_fpu(tsk); - tsk->used_math = 0; + clear_used_math(); } void release_thread(struct task_struct *dead_task) --- linux-2.6.10/arch/xen/i386/kernel/traps.c.usedmath 2005-02-07 13:40:24.368313102 -0500 +++ linux-2.6.10/arch/xen/i386/kernel/traps.c 2005-02-07 13:42:06.916872679 -0500 @@ -947,7 +947,7 @@ asmlinkage void math_state_restore(struc return; clts(); /* Allow maths ops (or we recurse) */ - if (!tsk->used_math) + if (tsk_used_math(tsk)) init_fpu(tsk); restore_fpu(tsk); thread->status |= TS_USEDFPU; /* So we fnsave on switch_to() */ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |