1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-20 12:58:08 +01:00
Files
gryf-overlay/x11-drivers/ati-drivers/files/0001-Linux-2.6.25.x-kernels-support.patch
2010-03-27 13:22:52 +01:00

28 lines
848 B
Diff

--- common/lib/modules/fglrx/build_mod/firegl_public.c
+++ common/lib/modules/fglrx/build_mod/firegl_public.c
@@ -4956,8 +4956,9 @@ static unsigned long kasSetExecutionLevel(unsigned long level)
{
unsigned long orig_level;
- orig_level = __get_cpu_var(kasExecutionLevel);
+ orig_level = get_cpu_var(kasExecutionLevel);
__get_cpu_var(kasExecutionLevel) = level;
+ put_cpu_var(kasExecutionLevel);
return orig_level;
}
@@ -4969,7 +4970,12 @@ static unsigned long kasSetExecutionLevel(unsigned long level)
*/
static unsigned long kas_GetExecutionLevel(void)
{
- return __get_cpu_var(kasExecutionLevel);
+ unsigned long orig_level;
+
+ orig_level = get_cpu_var(kasExecutionLevel);
+ put_cpu_var(kasExecutionLevel);
+
+ return orig_level;
}
/** \brief Type definition for kas_spin_lock() parameter */