Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 01:58:36 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/dist/include/drm [riastradh-drm2]: drmP.h

Log Message:
Implement drm_can_sleep by always returning false.

Not quite correct, but all we have in the kernel is assert_sleepable,
no sleepable_p, and it's not obvious to me that asking whether it's
kosher to sleep is ever a sensible thing to do.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.13 -r1.1.1.1.2.14 \
    src/sys/external/bsd/drm2/dist/include/drm/drmP.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/include/drm/drmP.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.13 src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.14
--- src/sys/external/bsd/drm2/dist/include/drm/drmP.h:1.1.1.1.2.13	Wed Jul 24 01:58:05 2013
+++ src/sys/external/bsd/drm2/dist/include/drm/drmP.h	Wed Jul 24 01:58:36 2013
@@ -1856,9 +1856,13 @@ extern int drm_get_platform_dev(struct p
 /* returns true if currently okay to sleep */
 static __inline__ bool drm_can_sleep(void)
 {
+#ifdef __NetBSD__
+	return false;		/* XXX */
+#else
 	if (in_atomic() || in_dbg_master() || irqs_disabled())
 		return false;
 	return true;
+#endif
 }
 
 #endif				/* __KERNEL__ */

Reply via email to