]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: fix GMCH power reporting
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 27 Sep 2010 17:35:44 +0000 (10:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:30 +0000 (21:51 -0700)
commit39a3fcd46e669818b54dd9f587f11a40ccdbebe2
treea1e5544ae156c931601eea617bd477b5610fafd2
parent264cf4e651212e9f38cb24399c3cf513e13adcd2
drm/i915: fix GMCH power reporting

commit d270ae34eb77c58dea60e5b1e300a698d2ce39ac upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_dma.c