summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-05-13 14:15:47 +1000
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:36:38 +1000
commit0433f8855f56806dbf9ff30239e5c3825dd7ae20 (patch)
tree30b3c0895519e01853d69f9a0ba95cce035b96d2 /sys/dev/pci/drm/drmP.h
parent69273d285638dc947010587b80c4cf6726d8dad1 (diff)
make most of the atombios code compile
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 1c8f5c67e84..23ebb79958c 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -262,6 +262,8 @@ mdelay(unsigned long msecs)
DELAY(1000);
}
+#define drm_can_sleep() (hz & 1)
+
#define LOCK_TEST_WITH_RETURN(dev, file_priv) \
do { \
if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) || \