Move irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef block
authorjsg <jsg@openbsd.org>
Fri, 10 Apr 2015 12:06:52 +0000 (12:06 +0000)
committerjsg <jsg@openbsd.org>
Fri, 10 Apr 2015 12:06:52 +0000 (12:06 +0000)
commitccdb918fc092d1cad3a7e59523a26b0d84dcc52c
tree284bc0ae5db9c8c39b3cff4bca8c23c3ba2134cb
parent578c45efae655e700fb480441ca26c4e0dff525f
Move irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef block
and change drm_can_sleep() to only use in_atomic() on i386/amd64 as
it isn't defined for other archs currently.  Unbreaks the sparc64 build.
Found the hard way by benoit@
sys/dev/pci/drm/drmP.h
sys/dev/pci/drm/drm_linux.h