]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- one more change needed for 2.4.33
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Aug 2006 14:35:05 +0000 (14:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    linux-2.4.25-sched-O1.patch -> 1.8

linux-2.4.25-sched-O1.patch

index dd6bf5cfb18f416c8d4575fc859b6cffdf16e085..f1083390da5fba22e897c8a22c5ad4096ca9255c 100644 (file)
@@ -9813,3 +9813,25 @@ diff -urN linux-2.4.24.org/net/bluetooth/cmtp/core.c linux-2.4.24/net/bluetooth/
  
        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) );
This page took 1.557158 seconds and 4 git commands to generate.