diff options
author | Andreas Herrmann <andreas.herrmann3@amd.com> | 2010-09-30 14:38:57 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-10-01 16:18:32 -0700 |
commit | 6057b4d331f19a3ea51aec463ea7839c128b3227 (patch) | |
tree | 0bcf33ac60389ab21781b565aaf5b5e8c0fa60d8 /arch/x86/include/asm/processor.h | |
parent | 23588c38a84c9175c6668789b64ffba4651e5c6a (diff) | |
download | talos-op-linux-6057b4d331f19a3ea51aec463ea7839c128b3227.tar.gz talos-op-linux-6057b4d331f19a3ea51aec463ea7839c128b3227.zip |
x86, amd: Extract compute unit information for AMD CPUs
Get compute unit information from CPUID Fn8000_001E_EBX.
(See AMD CPUID Specification - publication # 25481, revision 2.34,
September 2010.)
Note that each core on a compute unit still has a core_id of its own.
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
LKML-Reference: <20100930123857.GE20545@loge.amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 325b7bdbebaa..69e80c2ec6c2 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -110,6 +110,8 @@ struct cpuinfo_x86 { u16 phys_proc_id; /* Core id: */ u16 cpu_core_id; + /* Compute unit id */ + u8 compute_unit_id; /* Index into per_cpu list: */ u16 cpu_index; #endif |