- patches.fixes/patch-2.6.11-rc1: 2.6.11-rc1.
[linux-flexiantxendom0-3.2.10.git] / include / asm-x86_64 / i387.h
index aa39cfd..e613b8b 100644 (file)
@@ -25,6 +25,16 @@ extern void mxcsr_feature_mask_init(void);
 extern void init_fpu(struct task_struct *child);
 extern int save_i387(struct _fpstate __user *buf);
 
+static inline int need_signal_i387(struct task_struct *me) 
+{ 
+       if (!me->used_math)
+               return 0;
+       me->used_math = 0; 
+       if (me->thread_info->status & TS_USEDFPU)
+               return 0;
+       return 1;
+} 
+
 /*
  * FPU lazy state save handling...
  */