drm/i915: fix GMCH power reporting
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 27 Sep 2010 17:35:44 +0000 (10:35 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Sep 2010 17:43:45 +0000 (18:43 +0100)
commitd270ae34eb77c58dea60e5b1e300a698d2ce39ac
tree85f6fefbb0cbb93187d668fe44655bef8e1c6ad9
parentcf9a2f3afc75d41a61cbc91e725b9ce0746c400a
drm/i915: fix GMCH power reporting

The IPS driver needs to know the current power consumption of the GMCH
in order to make decisions about when to increase or decrease the CPU
and/or GPU power envelope.  So fix up the divisions to save the results
so the numbers are actually correct (contrary to some earlier comments
and code, these functions do not modify the first argument and use it
for the result).

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
drivers/gpu/drm/i915/i915_dma.c