diff options
author | Laurent Licour <laurent@licour.com> | 2011-01-30 20:50:59 +0100 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-01-30 20:50:59 +0100 |
commit | 813daa0f83959de7c1ece9381966905a538919db (patch) | |
tree | fe6fa1ad931ebb41e4a9da37610574721b74209a /com32/hdt/hdt-cli-dmi.c | |
parent | 98d58026c4bf38e42adcfbd5f92da29fb582d41a (diff) | |
download | syslinux-813daa0f83959de7c1ece9381966905a538919db.tar.gz |
DMI: Adjusting structures size / Adding cpu core
This patch adds some correction of the dmi structures but also add the
support of the cpu cores/threads.
Diffstat (limited to 'com32/hdt/hdt-cli-dmi.c')
-rw-r--r-- | com32/hdt/hdt-cli-dmi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/com32/hdt/hdt-cli-dmi.c b/com32/hdt/hdt-cli-dmi.c index 313445cd..45cbb240 100644 --- a/com32/hdt/hdt-cli-dmi.c +++ b/com32/hdt/hdt-cli-dmi.c @@ -350,6 +350,13 @@ static void show_dmi_cpu(int argc __unused, char **argv __unused, more_printf(" Serial : %s\n", hardware->dmi.processor.serial); more_printf(" Part Number : %s\n", hardware->dmi.processor.part_number); + if (hardware->dmi.processor.core_count != 0) + more_printf(" Cores Count : %d\n", hardware->dmi.processor.core_count); + if (hardware->dmi.processor.core_enabled != 0) + more_printf(" Cores Enabled : %d\n", hardware->dmi.processor.core_enabled); + if (hardware->dmi.processor.thread_count != 0) + more_printf(" Threads Count : %d\n", hardware->dmi.processor.thread_count); + more_printf(" ID : %s\n", hardware->dmi.processor.id); for (int i = 0; i < PROCESSOR_FLAGS_ELEMENTS; i++) { if (((bool *) (&hardware->dmi.processor.cpu_flags))[i] == true) { |