From ea7b4fdc225ebbbfd77f875fd3bfcfbdcfa9a1f7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 20 Oct 2003 05:09:21 +0000 Subject: Fix the possibility of sleeping with locks held in sysctls by copying the data into temporary variables with the lock held then outputting to sysctls with the lock released. Rearranged a little extra code to aid this. Note that drm_memory_debug.h hasn't had this fix applied, but I consider that code to be just about dead anyway. --- bsd-core/drm_os_netbsd.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bsd-core/drm_os_netbsd.h') diff --git a/bsd-core/drm_os_netbsd.h b/bsd-core/drm_os_netbsd.h index 1554d24d..b03399d8 100644 --- a/bsd-core/drm_os_netbsd.h +++ b/bsd-core/drm_os_netbsd.h @@ -342,12 +342,6 @@ do { \ #define DRM_DEBUG(fmt, arg...) do { } while (0) #endif -#define DRM_SYSCTL_PRINT(fmt, arg...) \ - snprintf(buf, sizeof(buf), fmt, ##arg); \ - error = SYSCTL_OUT(req, buf, strlen(buf)); \ - if (error) return error; - - #define DRM_FIND_MAP(dest, o) \ do { \ drm_map_list_entry_t *listentry; \ -- cgit v1.2.3