Skip to content

Commit

Permalink
x86, pageattr: introduce APIs to change pageattr of a page array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shaohua Li authored and Ingo Molnar committed Aug 21, 2008
1 parent cacf890 commit d75586a
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 50 deletions.
Loading

0 comments on commit d75586a

Please sign in to comment.