diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-11-27 15:44:33 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-12-04 10:11:14 +0100 |
commit | 8ae29a14d58100f21c8c6611190f15a46680f318 (patch) | |
tree | 8c4f6451f251c08d8989d9d954a9b8f3a48be8b8 /com32/gplinclude/cpuid.h | |
parent | eaba6a11bfa443f2cd792b3fb719f03ff5c8bb1c (diff) | |
download | syslinux-8ae29a14d58100f21c8c6611190f15a46680f318.tar.gz |
cpuid: Adding cpu core detection
Impact: we are now able to detect the number of cpu cores
We can detect the number of cores using cpuid(4) or cpuid_ecx(0x80000008)
Diffstat (limited to 'com32/gplinclude/cpuid.h')
-rw-r--r-- | com32/gplinclude/cpuid.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/gplinclude/cpuid.h b/com32/gplinclude/cpuid.h index 9f463aed..677f3f9f 100644 --- a/com32/gplinclude/cpuid.h +++ b/com32/gplinclude/cpuid.h @@ -127,6 +127,7 @@ typedef struct { char model[CPU_MODEL_SIZE]; uint8_t model_id; uint8_t stepping; + uint8_t num_cores; s_cpu_flags flags; } s_cpu; @@ -206,7 +207,7 @@ struct cpuinfo_x86 { #ifdef CONFIG_SMP cpumask_t llc_shared_map; /* cpus sharing the last level cache */ #endif - unsigned char x86_max_cores; /* cpuid returned max cores value */ + unsigned char x86_num_cores; /* cpuid returned the number of cores */ unsigned char booted_cores; /* number of cores as seen by OS */ unsigned char apicid; unsigned char x86_clflush_size; |