Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307205
b: refs/heads/master
c: a85d4bc
h: refs/heads/master
i:
  307203: 3cce8d5
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Apr 23, 2012
1 parent 046c24b commit 69ed4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 3801a7fd8615365a58960561d3bd3479b485ed3e
refs/heads/master: a85d4bcb8a0cd5b3c754f98ff91ef2b9b3a73bc5
4 changes: 2 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static u32 calc_residency(struct drm_device *dev, const u32 reg)
if (!intel_enable_rc6(dev))
return 0;

raw_time = I915_READ(reg) * 128ULL + 500;
return do_div(raw_time, 100000);
raw_time = I915_READ(reg) * 128ULL;
return DIV_ROUND_UP_ULL(raw_time, 100000);
}

static ssize_t
Expand Down

0 comments on commit 69ed4a2

Please sign in to comment.