]> git.baikalelectronics.ru Git - kernel.git/commit
x86: cpa, only flush the cache if the caching attributes have changed
authorAndi Kleen <ak@suse.de>
Mon, 4 Feb 2008 15:48:06 +0000 (16:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 Feb 2008 15:48:06 +0000 (16:48 +0100)
commite6188c0afe2fb4a35505e7d9b8de11428b6048b3
treebb06b03c0991a2f34e69ddbd07ab1a916858fc6c
parent1e56746e3990f2d90a460221b07da8912fc00846
x86: cpa, only flush the cache if the caching attributes have changed

We only need to flush the caches in cpa() if the the caching attributes
have changed. Otherwise only flush the TLBs.

This checks the PAT bits too although they are currently not used by
the kernel.

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