Group :: Development/Kernel
RPM: kernel-source-drm-2007.06.24
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: drm-2006.02.23-define_spinlock.patch
Download
Download
--- drm-2005.07.22/linux-core/drm_memory_debug.c.define_spinlock 2005-07-22 19:29:25 +0400
+++ drm-2005.07.22/linux-core/drm_memory_debug.c 2005-07-22 19:47:25 +0400
@@ -45,7 +45,7 @@ typedef struct drm_mem_stats {
unsigned long bytes_freed;
} drm_mem_stats_t;
-static spinlock_t drm_mem_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(drm_mem_lock);
static unsigned long drm_ram_available = 0; /* In pages */
static unsigned long drm_ram_used = 0;
static drm_mem_stats_t drm_mem_stats[] = {