]> bbs.cooldavid.org Git - net-next-2.6.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)
commit6bb8383bebc02dae08a17f561401f58005f75c03
treebb06b03c0991a2f34e69ddbd07ab1a916858fc6c
parent9bf5a47572fe4ea4e5ed2691e4313ea0bb68a74e
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