diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-02-22 13:00:51 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-02-22 13:00:51 +0200 |
commit | 235172f53ead3667e1ea9e9a665caab732584a48 (patch) | |
tree | 8bf95e4bfa8b9473f4d9a0d011e5eaad2a2a5f09 /x11-drivers/ati-drivers/files | |
parent | 9bead8a623206cc8940e107fc9caf04409bfb6fc (diff) |
Added x11-drivers/*
Diffstat (limited to 'x11-drivers/ati-drivers/files')
-rw-r--r-- | x11-drivers/ati-drivers/files/ati-drivers-14.12-linux-3.19.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-drivers/ati-drivers/files/ati-drivers-14.12-linux-3.19.patch b/x11-drivers/ati-drivers/files/ati-drivers-14.12-linux-3.19.patch new file mode 100644 index 00000000..9594972d --- /dev/null +++ b/x11-drivers/ati-drivers/files/ati-drivers-14.12-linux-3.19.patch @@ -0,0 +1,28 @@ +--- a/common/lib/modules/fglrx/build_mod/firegl_public.c ++++ b/common/lib/modules/fglrx/build_mod/firegl_public.c +@@ -4823,8 +4823,13 @@ + { + unsigned long orig_level; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) ++ orig_level = __this_cpu_read(kasExecutionLevel); ++ __this_cpu_write(kasExecutionLevel,level); ++#else + orig_level = __get_cpu_var(kasExecutionLevel); + __get_cpu_var(kasExecutionLevel) = level; ++#endif + + return orig_level; + } +@@ -4836,7 +4841,11 @@ + */ + static unsigned long kas_GetExecutionLevel(void) + { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) ++ return __this_cpu_read(kasExecutionLevel); ++#else + return __get_cpu_var(kasExecutionLevel); ++#endif + } + + /** \brief Type definition for kas_spin_lock() parameter */ |