x86, pageattr: introduce APIs to change pageattr of a page array
authorShaohua Li <shaohua.li@intel.com>
Thu, 21 Aug 2008 02:46:06 +0000 (10:46 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 11:47:45 +0000 (13:47 +0200)
Add array interface APIs of pageattr. page based cache flush is quite
slow for a lot of pages. If pages are more than 1024 (4M), the patch
will use a wbinvd(). We have a simple test here (run a 3d game - open
arena), nearly all agp memory allocation are small (< 1M), so suppose
this will not impact runtime performance.

Signed-off-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found