]> git.baikalelectronics.ru Git - kernel.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)
commitb8427cd4cd111149de0fa09bb1014ea9f85fbe0f
treeaab1dc72f7048da7eda699cb52ae1430738c1c03
parent61f466f5c24a719a9fc95af67b030658f8762c7d
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