summarylogtreecommitdiffstats
path: root/4.2-kolasa-fpu_save_init.patch
diff options
context:
space:
mode:
authorVi0L02015-12-13 22:07:16 +0100
committerVi0L02015-12-13 22:07:16 +0100
commit2b8bbee1a102ff47f11b3c8dac68fb6ecb53a846 (patch)
tree28039313f87ea4dc2c01f62edec0993822a190bc /4.2-kolasa-fpu_save_init.patch
parent6ba2cb92eac8ae292a785c970f13f5b8ebe882e1 (diff)
downloadaur-2b8bbee1a102ff47f11b3c8dac68fb6ecb53a846.tar.gz
adding support for up to 4.3 linux kernel + adding custom ACPI files for events handling
Diffstat (limited to '4.2-kolasa-fpu_save_init.patch')
-rw-r--r--4.2-kolasa-fpu_save_init.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/4.2-kolasa-fpu_save_init.patch b/4.2-kolasa-fpu_save_init.patch
new file mode 100644
index 000000000000..de6475f16a68
--- /dev/null
+++ b/4.2-kolasa-fpu_save_init.patch
@@ -0,0 +1,26 @@
+---15.11/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-11-08 18:03:26.426797430 +0100
++++ 15.11b/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-11-08 18:11:43.177831390 +0100
+@@ -6143,7 +6143,11 @@
+ struct task_struct *cur_task = get_current();
+ preempt_disable();
+ if (cur_thread->status & TS_USEDFPU)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
++ copy_fpregs_to_fpstate(&cur_task->thread.fpu);
++#else
+ __save_init_fpu(cur_task);
++#endif
+ else
+ clts();
+ #else
+@@ -6164,7 +6168,11 @@
+ #else
+ if (cur_task->thread.fpu.fpregs_active)
+ #endif
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
++ copy_fpregs_to_fpstate(&cur_task->thread.fpu);
++#else
+ __save_init_fpu(cur_task);
++#endif
+ else
+ clts();
+ #endif