diff options
author | Robert Richter <robert.richter@amd.com> | 2010-07-21 13:03:54 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-21 17:06:04 -0400 |
commit | ee813d53a8e980a3a28318efb8935d45723f5211 (patch) | |
tree | 4729849d80a1fde57071b3baacdae78528348a68 /arch/x86/include/asm/xsave.h | |
parent | 97e80a70db689fb1e876df9f12305cc72f85ca53 (diff) |
x86, xsave: Check cpuid level for XSTATE_CPUID (0x0d)
The patch introduces the XSTATE_CPUID macro and adds a check that
tests if XSTATE_CPUID exists.
Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1279731838-1522-4-git-send-email-robert.richter@amd.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/xsave.h')
-rw-r--r-- | arch/x86/include/asm/xsave.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xsave.h b/arch/x86/include/asm/xsave.h index 4d3b5d1fc028..d1b5f3a2fa20 100644 --- a/arch/x86/include/asm/xsave.h +++ b/arch/x86/include/asm/xsave.h | |||
@@ -4,6 +4,8 @@ | |||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | #include <asm/processor.h> | 5 | #include <asm/processor.h> |
6 | 6 | ||
7 | #define XSTATE_CPUID 0x0000000d | ||
8 | |||
7 | #define XSTATE_FP 0x1 | 9 | #define XSTATE_FP 0x1 |
8 | #define XSTATE_SSE 0x2 | 10 | #define XSTATE_SSE 0x2 |
9 | #define XSTATE_YMM 0x4 | 11 | #define XSTATE_YMM 0x4 |