diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-26 10:38:52 -0400 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-01-20 04:06:26 -0500 |
commit | 3c184f69917d16e295934fcbe0803355b544df64 (patch) | |
tree | 8858d539118e451ab576b08459d8a4d69ed822f9 /include/drm | |
parent | 77666b72260da3a5290471de77e2d2261244db83 (diff) |
drm: Change {pixel,line,frame}dur_ns from s64 to int
Using s64 for the timestamping constants is wasteful. Signed 32bit
integers get us a range of over +-2 seconds. Presuming that no-one
wants to a vrefresh rate less than 0.5, we can switch to using int
for the timestamping constants. We save a few bytes in drm_crtc and
avoid a bunch of 64bit math.
Reviewed-by: mario.kleiner.de@gmail.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index f32c5cd51f41..a158ec0f97ab 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -447,7 +447,7 @@ struct drm_crtc { | |||
447 | uint16_t *gamma_store; | 447 | uint16_t *gamma_store; |
448 | 448 | ||
449 | /* Constants needed for precise vblank and swap timestamping. */ | 449 | /* Constants needed for precise vblank and swap timestamping. */ |
450 | s64 framedur_ns, linedur_ns, pixeldur_ns; | 450 | int framedur_ns, linedur_ns, pixeldur_ns; |
451 | 451 | ||
452 | /* if you are using the helper */ | 452 | /* if you are using the helper */ |
453 | void *helper_private; | 453 | void *helper_private; |