]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: cpa: implement clflush optimization
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Jan 2008 12:34:08 +0000 (13:34 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:08 +0000 (13:34 +0100)
commit57a6a46aa26d6e39c62daf8b3b96e94f76e6846f
treeaab1dc72f7048da7eda699cb52ae1430738c1c03
parent56744546b3e5379177a70e7306c6283f727e4732
x86: cpa: implement clflush optimization

Use clflush on CPUs which support this.

clflush is only used when the page attribute operation has been
successful. On CPUs which do not support clflush and in the case of
error the old fashioned global_flush_tlb() is called.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c