diff options
author | Vi0L0 | 2015-06-08 20:49:00 +0200 |
---|---|---|
committer | Vi0L0 | 2015-06-08 20:49:00 +0200 |
commit | f21a19f33a6159ee32a78f674490f08bcbb4d76a (patch) | |
tree | 7b87b0bd995f33843b8c4ce1c08c5e650bd52b3d /kolasa-3.19-get_cpu_var.patch | |
download | aur-f21a19f33a6159ee32a78f674490f08bcbb4d76a.tar.gz |
Initial import
Diffstat (limited to 'kolasa-3.19-get_cpu_var.patch')
-rw-r--r-- | kolasa-3.19-get_cpu_var.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kolasa-3.19-get_cpu_var.patch b/kolasa-3.19-get_cpu_var.patch new file mode 100644 index 000000000000..5a571da9fd96 --- /dev/null +++ b/kolasa-3.19-get_cpu_var.patch @@ -0,0 +1,28 @@ +--- 14.12/common/lib/modules/fglrx/build_mod/firegl_public.c 2014-12-11 00:15:11.000000000 +0100 ++++ 14.12/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-01-01 21:39:40.471543282 +0100 +@@ -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 */ |