SOURCES: xorg-driver-video-fglrx-kmem_cache_destroy.patch (NEW) - ...

vip vip at pld-linux.org
Thu Mar 29 01:05:56 CEST 2007


Author: vip                          Date: Wed Mar 28 23:05:56 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- another hack for new ati driver (based on http://www.phoronix.net/forums/showthread.php?t=1033)

---- Files affected:
SOURCES:
   xorg-driver-video-fglrx-kmem_cache_destroy.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/xorg-driver-video-fglrx-kmem_cache_destroy.patch
diff -u /dev/null SOURCES/xorg-driver-video-fglrx-kmem_cache_destroy.patch:1.1
--- /dev/null	Thu Mar 29 01:05:56 2007
+++ SOURCES/xorg-driver-video-fglrx-kmem_cache_destroy.patch	Thu Mar 29 01:05:51 2007
@@ -0,0 +1,42 @@
+--- xorg-driver-video-fglrx-8.35.5/common/lib/modules/fglrx/build_mod/firegl_public.c	2007-03-29 00:31:40.527782600 +0200
++++ xorg-driver-video-fglrx-8.35.5/common/lib/modules/fglrx/build_mod/firegl_public.c~	2007-03-29 00:28:43.753265243 +0200
+@@ -172,6 +172,7 @@
+ #endif
+ 
+ #include <linux/kmod.h>
++#include <linux/freezer.h>
+ 
+ // To enable DBG_* macros set this variable to nonzero
+ #define DRM_DEBUG_CODE 0
+@@ -5060,28 +5061,13 @@
+     unsigned int ret = 0;
+     kasSlabCache_t* slabcache_obj = (kasSlabCache_t*)hSlabCache;
+ 
+-    DBG_ENTER("0x%08X", hSlabCache);
+-
+-    if (!(slabcache_obj->cache))
+-    {
+-        DBG_ERROR("slab object '%s' is not initialized");
+-        DBG_LEAVE("0");
+-        return 0;
+-    }
+-
+-    DBG_TRACE("destroying slab object '%s'", slabcache_obj->name);
+-
+-    if (kmem_cache_destroy(slabcache_obj->cache) == 0)
++    if (slabcache_obj->cache)
+     {
+-        ret = 1;
++        kmem_cache_destroy(slabcache_obj->cache);
+         slabcache_obj->cache = NULL;
+-    }
+-    else
+-    {
+-        DBG_ERROR("destroying failed");
++        ret = 1;
+     }
+ 
+-    DBG_LEAVE("%d", ret);
+     return ret;
+ }
+ 
================================================================


More information about the pld-cvs-commit mailing list