]> git.karo-electronics.de Git - linux-beck.git/commit
arch/x86: Add array variants for setting memory to wc caching.
authorPauli Nieminen <suokkos@gmail.com>
Thu, 1 Apr 2010 12:45:01 +0000 (12:45 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Apr 2010 01:36:06 +0000 (11:36 +1000)
commit4f64625412be120cef9e9b97e88c406ec2c78027
treed26eb670482e2b3adfed309044294c2edb529942
parentbf62acdef89cb5b294668a6a747f7411dfe2ea7d
arch/x86: Add array variants for setting memory to wc caching.

Setting single memory pages at a time to wc takes a lot time in cache flush. To
reduce number of cache flush set_pages_array_wc and set_memory_array_wc can be
used to set multiple pages to WC with single cache flush.

This improves allocation performance for wc cached pages in drm/ttm.

CC: Suresh Siddha <suresh.b.siddha@intel.com>
CC: Venkatesh Pallipadi <venkatesh.pallipadi@gmail.com>
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
arch/x86/include/asm/cacheflush.h
arch/x86/mm/pageattr.c