• A
    x86: add set_memory_4k to pageattr.c · c9caa02c
    Andi Kleen 提交于
    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: NAndi Kleen <ak@suse.de>
    Cc: andreas.herrmann3@amd.com
    Cc: mingo@elte.hu
    Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    c9caa02c
pageattr.c 23.6 KB