Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358155
b: refs/heads/master
c: 85a7ce6
h: refs/heads/master
i:
  358153: 13b6780
  358151: 9e982bb
v: v3
  • Loading branch information
Daniel Kurtz authored and Dave Airlie committed Feb 8, 2013
1 parent c43d0e9 commit 1f3dfdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd66cc2e1f4765d0e6f39eb1e7d8d64d3f1cc522
refs/heads/master: 85a7ce67f3ebfd5975ffd1febcabfe4999ca911d
6 changes: 5 additions & 1 deletion trunk/drivers/gpu/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,18 @@ void drm_calc_timestamping_constants(struct drm_crtc *crtc)

/* Valid dotclock? */
if (dotclock > 0) {
int frame_size;
/* Convert scanline length in pixels and video dot clock to
* line duration, frame duration and pixel duration in
* nanoseconds:
*/
pixeldur_ns = (s64) div64_u64(1000000000, dotclock);
linedur_ns = (s64) div64_u64(((u64) crtc->hwmode.crtc_htotal *
1000000000), dotclock);
framedur_ns = (s64) crtc->hwmode.crtc_vtotal * linedur_ns;
frame_size = crtc->hwmode.crtc_htotal *
crtc->hwmode.crtc_vtotal;
framedur_ns = (s64) div64_u64((u64) frame_size * 1000000000,
dotclock);
} else
DRM_ERROR("crtc %d: Can't calculate constants, dotclock = 0!\n",
crtc->base.id);
Expand Down

0 comments on commit 1f3dfdf

Please sign in to comment.