diff options
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 034297640b48..80ff94ada75e 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -34,6 +34,7 @@ | |||
34 | 34 | ||
35 | #include <drm/drmP.h> | 35 | #include <drm/drmP.h> |
36 | #include "drm_trace.h" | 36 | #include "drm_trace.h" |
37 | #include "drm_internal.h" | ||
37 | 38 | ||
38 | #include <linux/interrupt.h> /* For task queue support */ | 39 | #include <linux/interrupt.h> /* For task queue support */ |
39 | #include <linux/slab.h> | 40 | #include <linux/slab.h> |
@@ -59,6 +60,20 @@ static bool | |||
59 | drm_get_last_vbltimestamp(struct drm_device *dev, int crtc, | 60 | drm_get_last_vbltimestamp(struct drm_device *dev, int crtc, |
60 | struct timeval *tvblank, unsigned flags); | 61 | struct timeval *tvblank, unsigned flags); |
61 | 62 | ||
63 | static unsigned int drm_timestamp_precision = 20; /* Default to 20 usecs. */ | ||
64 | |||
65 | /* | ||
66 | * Default to use monotonic timestamps for wait-for-vblank and page-flip | ||
67 | * complete events. | ||
68 | */ | ||
69 | unsigned int drm_timestamp_monotonic = 1; | ||
70 | |||
71 | static int drm_vblank_offdelay = 5000; /* Default to 5000 msecs. */ | ||
72 | |||
73 | module_param_named(vblankoffdelay, drm_vblank_offdelay, int, 0600); | ||
74 | module_param_named(timestamp_precision_usec, drm_timestamp_precision, int, 0600); | ||
75 | module_param_named(timestamp_monotonic, drm_timestamp_monotonic, int, 0600); | ||
76 | |||
62 | /** | 77 | /** |
63 | * drm_update_vblank_count - update the master vblank counter | 78 | * drm_update_vblank_count - update the master vblank counter |
64 | * @dev: DRM device | 79 | * @dev: DRM device |