0002-Add-support-for-Linux-4.1.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From e9c8ccb4c8c842042542b792c51f9a7ec6c85e06 Mon Sep 17 00:00:00 2001
  2. From: Alberto Milone <alberto.milone@canonical.com>
  3. Date: Thu, 17 Sep 2015 15:44:59 +0200
  4. Subject: [PATCH] Add support for Linux 4.1
  5. Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
  6. ---
  7. common/lib/modules/fglrx/build_mod/firegl_public.c | 4 +++-
  8. 1 file changed, 3 insertions(+), 1 deletion(-)
  9. diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
  10. index 6017e89..94778f1 100755
  11. --- a/common/lib/modules/fglrx/build_mod/firegl_public.c
  12. +++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
  13. @@ -3508,10 +3508,12 @@ int ATI_API_CALL KCL_InstallInterruptHandler(
  14. KCL_PUB_InterruptHandlerWrap,
  15. #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
  16. ((useMSI) ? (SA_INTERRUPT) : (SA_SHIRQ)),
  17. -#else
  18. +#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0)
  19. //when MSI enabled. keep irq disabled when calling the action handler,
  20. //exclude this IRQ from irq balancing (only on one CPU)
  21. ((useMSI) ? (IRQF_DISABLED) : (IRQF_SHARED)),
  22. +#else
  23. + ((useMSI) ? (0x0) : (IRQF_SHARED)),
  24. #endif
  25. dev_name,
  26. context);
  27. --
  28. 2.8.1