]> err.no Git - linux-2.6/commit
x86: add set_memory_4k to pageattr.c
authorAndi Kleen <andi@firstfloor.org>
Wed, 12 Mar 2008 02:53:29 +0000 (03:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:30 +0000 (17:41 +0200)
commitc9caa02c529d5e113e40cbc77254558fcdfa4215
treecb3f9f5a5d26bf7df542a61bfb524e886d8c6510
parentcc6150321903ca4c3bc9d53b0cdafb05d77d64d0
x86: add set_memory_4k to pageattr.c

Add a new function to force split large pages into 4k pages.
This is needed for some followup optimizations.

I had to add a new field to cpa_data to pass down the information
that try_preserve_large_page should not run.

Right now no set_page_4k() because I didn't need it and all the
specialized users I have in mind would be more comfortable with
pure addresses. I also didn't export it because it's unlikely
external code needs it.

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: andreas.herrmann3@amd.com
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c
include/asm-x86/cacheflush.h