x86: Axe the lightly-used cpu_has_pae
authorDave Hansen <dave.hansen@linux.intel.com>
Thu, 11 Sep 2014 21:15:11 +0000 (14:15 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 11 Sep 2014 21:30:01 +0000 (14:30 -0700)
commitc8128cceb4f4b02c53096cb173628184c7e9bc36
tree670940085ab481430428d4ff707566a8dae734e7
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd
x86: Axe the lightly-used cpu_has_pae

cpu_has_pae is only referenced in one place: the X86_32 kexec
code (in a file not even built on 64-bit).  It hardly warrants
its own macro, or the trouble we go to ensuring that it can't
be called in X86_64 code.

Axe the macro and replace it with a direct cpu feature check.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: http://lkml.kernel.org/r/20140911211511.AD76E774@viggo.jf.intel.com
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/cpufeature.h
arch/x86/kernel/machine_kexec_32.c