summaryrefslogtreecommitdiff
path: root/bsd-core/drm_os_netbsd.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-10-20 05:09:21 +0000
committerEric Anholt <anholt@freebsd.org>2003-10-20 05:09:21 +0000
commitea7b4fdc225ebbbfd77f875fd3bfcfbdcfa9a1f7 (patch)
treea37f442a37d9e577110812486410c4c023bf43e6 /bsd-core/drm_os_netbsd.h
parent6b0424fdcdec9d12943718e4542659c8bca019da (diff)
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.
Diffstat (limited to 'bsd-core/drm_os_netbsd.h')
-rw-r--r--bsd-core/drm_os_netbsd.h6
1 files changed, 0 insertions, 6 deletions
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; \