intel-gtt: adjust overhead entries in intel_gtt_stolen_entries
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Aug 2010 15:12:41 +0000 (17:12 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 20:20:12 +0000 (21:20 +0100)
commitfbe407836b5c8d82c68195962240a392d0ce64ea
tree243c746f61fae6ecff3f1459408be5909c4e161d
parent77ad498ecaeb9a614d2a7bbfaab58a35c0cc577d
intel-gtt: adjust overhead entries in intel_gtt_stolen_entries

agp/intel_gtt.c and drm/i915/i915_dma.c don't calculate this the same
way: The intel-gtt code seems to use the actual gtt size, the drm
module just the mappable. Go with the logic from the drm module because
that's the more conservative choice.

But conserve the original code in intel_gtt_total_size for later use.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/char/agp/intel-gtt.c