]> git.baikalelectronics.ru Git - kernel.git/commit
x86: c_p_a() make it more robust against use of PAT bits
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:33:52 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:52 +0000 (13:33 +0100)
commitd8f8f5564f4a5d2f075eb2c6554eebab52927fe7
treee95aed8be8660bfac8ca73037cd1e0f0c7e2cdad
parent86772be8ba82a7e6d72e936215c37fd6df3d4cb5
x86: c_p_a() make it more robust against use of PAT bits

Use the page table level instead of the PSE bit to check if the PTE
is for a 4K page or not. This makes the code more robust when the PAT
bit is changed because the PAT bit on 4K pages is in the same position
as the PSE bit.

Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr_32.c
arch/x86/mm/pageattr_64.c