summarylogtreecommitdiffstats
path: root/4.2-fglrx-has_fpu.patch
diff options
context:
space:
mode:
authorVi0L02015-11-09 20:45:46 +0100
committerVi0L02015-11-09 20:45:46 +0100
commit7566f4f49cafe3405a9cc9b04c098938f3b5a94d (patch)
treec9b8189b138400a75e60510ae62b7cb79d13533c /4.2-fglrx-has_fpu.patch
parent52556ab70c9a6830fc91886f8a39dcc3cddf55a8 (diff)
downloadaur-7566f4f49cafe3405a9cc9b04c098938f3b5a94d.tar.gz
added 4.2 and 4.3 kernel support
Diffstat (limited to '4.2-fglrx-has_fpu.patch')
-rw-r--r--4.2-fglrx-has_fpu.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/4.2-fglrx-has_fpu.patch b/4.2-fglrx-has_fpu.patch
new file mode 100644
index 000000000000..173ec888dc74
--- /dev/null
+++ b/4.2-fglrx-has_fpu.patch
@@ -0,0 +1,20 @@
+--- 15.7/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-07-04 16:31:23.000000000 +0200
++++ 15.7b/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-08-21 15:26:44.860536831 +0200
+@@ -6475,6 +6475,7 @@
+ */
+ struct task_struct *cur_task = current;
+ preempt_disable();
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+ /* The thread structure is changed with the commit below for kernel 3.3:
+ * https://github.com/torvalds/linux/commit/7e16838d94b566a17b65231073d179bc04d590c8
+@@ -6483,6 +6484,9 @@
+ #else
+ if (cur_task->thread.has_fpu)
+ #endif
++#else
++ if (cur_task->thread.fpu.fpregs_active)
++#endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
+ KCL_fpu_save_init(cur_task);
+ #else