drm: update lock flags from userspace

Signed-off-by: Dave Airlie <airlied@linux.ie>

authored by Dave Airlie and committed by Dave Airlie b3a80a22 0d6aa60b

+2 -2
+2 -2
drivers/char/drm/drm.h
··· 90 #define DRM_MAX_ORDER 22 /**< Up to 2^22 bytes = 4MB */ 91 #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */ 92 93 - #define _DRM_LOCK_HELD 0x80000000 /**< Hardware lock is held */ 94 - #define _DRM_LOCK_CONT 0x40000000 /**< Hardware lock is contended */ 95 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) 96 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) 97 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT))
··· 90 #define DRM_MAX_ORDER 22 /**< Up to 2^22 bytes = 4MB */ 91 #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */ 92 93 + #define _DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */ 94 + #define _DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */ 95 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) 96 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) 97 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT))