SOURCES: linux-2.4.25-sched-O1.patch - one more change needed for ...

qboosh qboosh at pld-linux.org
Wed Aug 16 16:35:10 CEST 2006


Author: qboosh                       Date: Wed Aug 16 14:35:10 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- one more change needed for 2.4.33

---- Files affected:
SOURCES:
   linux-2.4.25-sched-O1.patch (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SOURCES/linux-2.4.25-sched-O1.patch
diff -u SOURCES/linux-2.4.25-sched-O1.patch:1.7 SOURCES/linux-2.4.25-sched-O1.patch:1.8
--- SOURCES/linux-2.4.25-sched-O1.patch:1.7	Tue Apr  5 12:28:08 2005
+++ SOURCES/linux-2.4.25-sched-O1.patch	Wed Aug 16 16:35:05 2006
@@ -9813,3 +9813,25 @@
  
  	set_fs(KERNEL_DS);
  
+--- linux-2.4.33/arch/i386/kernel/i387.c.orig	2006-08-11 06:18:20.000000000 +0200
++++ linux-2.4.33/arch/i386/kernel/i387.c	2006-08-16 16:03:30.925971000 +0200
+@@ -68,15 +68,18 @@
+  * FPU lazy state save handling.
+  */
+ 
++unsigned long nr_context_switches(void);
++
+ static inline void __save_init_fpu( struct task_struct *tsk )
+ {
+ 	if ( cpu_has_fxsr ) {
++		unsigned int cswtch = nr_context_switches();
+ 		asm volatile( "fxsave %0"
+ 			      : "=m" (tsk->thread.i387.fxsave) );
+ 		if (tsk->thread.i387.fxsave.swd & (1<<7))
+ 			asm volatile("fnclex");
+ 		/* AMD CPUs leak F?P. Clear it here */
+-		asm volatile("ffree %%st(7) ; fildl %0" :: "m" (kstat.context_swtch));
++		asm volatile("ffree %%st(7) ; fildl %0" :: "m" (cswtch));
+ 	} else {
+ 		asm volatile( "fnsave %0 ; fwait"
+ 			      : "=m" (tsk->thread.i387.fsave) );
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/linux-2.4.25-sched-O1.patch?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list