diff options
author | Vi0L0 | 2015-09-20 19:22:47 +0200 |
---|---|---|
committer | Vi0L0 | 2015-09-20 19:22:47 +0200 |
commit | fd995b3deddcb6ec163e88f09ea42ce61768073e (patch) | |
tree | ade9ad98b719dfbd485fc3ad0b4144ae362cce46 /4.2-kolasa-fpu_save_init.patch | |
parent | 5d468a917ce3bcd2ed4cd613d833c7ab821cd83e (diff) | |
download | aur-fd995b3deddcb6ec163e88f09ea42ce61768073e.tar.gz |
added 4.2-kolasa-fpu_save_init.patch https://github.com/kolasa/fglrx-core-15.201/commit/9271cb89b7e02d4f30a208eed8cbb1afe4038be0
Diffstat (limited to '4.2-kolasa-fpu_save_init.patch')
-rw-r--r-- | 4.2-kolasa-fpu_save_init.patch | 34 |
1 files changed, 34 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..6d2e4e70c0f5 --- /dev/null +++ b/4.2-kolasa-fpu_save_init.patch @@ -0,0 +1,34 @@ +--- 15.9/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-09-20 18:29:19.488890309 +0200 ++++ 15.9b/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-09-20 14:20:51.000000000 +0200 +@@ -6505,11 +6505,15 @@ + 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 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) + KCL_fpu_save_init(cur_task); + #else + __save_init_fpu(cur_task); + #endif ++#endif + else + clts(); + +@@ -6531,11 +6535,15 @@ + #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 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) + KCL_fpu_save_init(cur_task); + #else + __save_init_fpu(cur_task); + #endif ++#endif + else + clts(); + #endif |