diff options
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.h')
-rw-r--r-- | sys/dev/pci/drm/drm_linux.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h index 04879bac0e9..e6d71f7fa27 100644 --- a/sys/dev/pci/drm/drm_linux.h +++ b/sys/dev/pci/drm/drm_linux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.h,v 1.15 2015/04/08 04:03:06 jsg Exp $ */ +/* $OpenBSD: drm_linux.h,v 1.16 2015/04/10 05:31:25 jsg Exp $ */ /* * Copyright (c) 2013, 2014 Mark Kettenis * @@ -544,6 +544,21 @@ in_atomic(void) return curcpu()->ci_inatomic; } +static inline int +irqs_disabled(void) +{ + return (cold); +} + +static inline int +in_dbg_master(void) +{ +#ifdef DDB + return (db_is_active); +#endif + return (0); +} + static inline void * kmap_atomic(struct vm_page *pg) { |