Files
main/kernel/drivers/module-fglrx/files/manjaro_fglrx_319.patch
T
2015-06-20 22:07:39 +03:00

23 lines
655 B
Diff

--- a/firegl_public.c
+++ b/firegl_public.c
@@ -4820,8 +4824,8 @@ static unsigned long kasSetExecutionLeve
{
unsigned long orig_level;
- orig_level = __get_cpu_var(kasExecutionLevel);
- __get_cpu_var(kasExecutionLevel) = level;
+ orig_level = __this_cpu_read(kasExecutionLevel);
+ __this_cpu_write(kasExecutionLevel, level);
return orig_level;
}
@@ -4833,7 +4837,7 @@ static unsigned long kasSetExecutionLeve
*/
static unsigned long kas_GetExecutionLevel(void)
{
- return __get_cpu_var(kasExecutionLevel);
+ return __this_cpu_read(kasExecutionLevel);
}
/** \brief Type definition for kas_spin_lock() parameter */