Re: [PATCH] Fix i486 suspend to disk CR4 oops

From: H. Peter Anvin
Date: Mon Aug 18 2008 - 02:38:25 EST


Andi Kleen wrote:

The other alternative is to probe for the CPUID instruction (via
EFLAGS.ID) -- CR4 is present if and only if CPUID exists.

Can be already checked for with boot_cpu_data.extended_cpuid_level.


I believe you mean just plain cpuid_level (which is set to -1 if CPUID doesn't exist.) extended_cpuid_level is only defined on x86-64, but all x86-64 CPUs have CR4.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/