manjaro_fglrx_319.patch 655 B

1234567891011121314151617181920212223
  1. --- a/firegl_public.c
  2. +++ b/firegl_public.c
  3. @@ -4820,8 +4824,8 @@ static unsigned long kasSetExecutionLeve
  4. {
  5. unsigned long orig_level;
  6. - orig_level = __get_cpu_var(kasExecutionLevel);
  7. - __get_cpu_var(kasExecutionLevel) = level;
  8. + orig_level = __this_cpu_read(kasExecutionLevel);
  9. + __this_cpu_write(kasExecutionLevel, level);
  10. return orig_level;
  11. }
  12. @@ -4833,7 +4837,7 @@ static unsigned long kasSetExecutionLeve
  13. */
  14. static unsigned long kas_GetExecutionLevel(void)
  15. {
  16. - return __get_cpu_var(kasExecutionLevel);
  17. + return __this_cpu_read(kasExecutionLevel);
  18. }
  19. /** \brief Type definition for kas_spin_lock() parameter */