Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/include/drm Implement dr...



details:   https://anonhg.NetBSD.org/src/rev/1963dc016f56
branches:  riastradh-drm2
changeset: 788043:1963dc016f56
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 01:58:36 2013 +0000

description:
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.

diffstat:

 sys/external/bsd/drm2/dist/include/drm/drmP.h |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r f3a49c7e101d -r 1963dc016f56 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h     Wed Jul 24 01:58:19 2013 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h     Wed Jul 24 01:58:36 2013 +0000
@@ -1856,9 +1856,13 @@
 /* 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__ */



Home | Main Index | Thread Index | Old Index