x86: Avoid check hlt for newer cpus

Check hlt instruction was targeted for some older CPUs. It is an expensive
operation in that it takes 4 ticks to break out the check. We can avoid
such check completely for newer x86 cpus (family >= 5).

[ hpa: corrected family > 5 to family >= 5 ]

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
LKML-Reference: <1273269585-14346-1-git-send-email-jacob.jun.pan@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

authored by Jacob Pan and committed by H. Peter Anvin 2b107d93 722154e4

+1 -1
+1 -1
arch/x86/kernel/cpu/bugs.c
··· 86 86 87 87 static void __init check_hlt(void) 88 88 { 89 - if (paravirt_enabled()) 89 + if (boot_cpu_data.x86 >= 5 || paravirt_enabled()) 90 90 return; 91 91 92 92 printk(KERN_INFO "Checking 'hlt' instruction... ");