x86: clean up pte_exec
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:33:42 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:42 +0000 (13:33 +0100)
commit4c3c4b4513a361cc6ac5ee8677695260c4f0f25f
tree3a56ada5131a85fff2bb37841d822d098b92f68c
parente66a95127dc4273d3573eb03657991f7bbd5dca3
x86: clean up pte_exec

- Rename it to pte_exec() from pte_exec_kernel(). There is nothing
kernel specific in there.
- Move it into the common file because _PAGE_NX is 0 on !PAE and then
pte_exec() will be always evaluate to true.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/fault_32.c
arch/x86/mm/init_32.c
include/asm-x86/pgtable-2level.h
include/asm-x86/pgtable-3level.h
include/asm-x86/pgtable.h