diff options
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 0a271ca1f7c7..a8e01aaca087 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -349,6 +349,8 @@ struct drm_file { | |||
349 | struct list_head event_list; | 349 | struct list_head event_list; |
350 | int event_space; | 350 | int event_space; |
351 | 351 | ||
352 | struct mutex event_read_lock; | ||
353 | |||
352 | struct drm_prime_file_private prime; | 354 | struct drm_prime_file_private prime; |
353 | }; | 355 | }; |
354 | 356 | ||
@@ -1121,4 +1123,7 @@ static __inline__ bool drm_can_sleep(void) | |||
1121 | return true; | 1123 | return true; |
1122 | } | 1124 | } |
1123 | 1125 | ||
1126 | /* helper for handling conditionals in various for_each macros */ | ||
1127 | #define for_each_if(condition) if (!(condition)) {} else | ||
1128 | |||
1124 | #endif | 1129 | #endif |