agp/intel: Reduce extraneous PCI posting reads during init
authorKeith Packard <keithp@keithp.com>
Wed, 15 Oct 2008 00:18:45 +0000 (17:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Feb 2009 17:31:00 +0000 (09:31 -0800)
commit297c65a6bff93f734511abc154c968aa85f889bf
treef12c7e8d1e963083e863aadb8b899ceac2ed20fe
parentdaa7adb9f35df28a7da302731715190615e94498
agp/intel: Reduce extraneous PCI posting reads during init

commit 44d494417278e49f5b42bd3ded1801b6d2254db8 upstream.

Instead of doing a posting read after each GTT entry update, do a single one
at the end of the writes. This should reduce boot time a tiny amount by
avoiding a lot of extra uncached reads.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/agp/intel-agp.c