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-menu-processor.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-menu-processor.c')
-rw-r--r-- | com32/hdt/hdt-menu-processor.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/com32/hdt/hdt-menu-processor.c b/com32/hdt/hdt-menu-processor.c index ad4a8bae..f28833b5 100644 --- a/com32/hdt/hdt-menu-processor.c +++ b/com32/hdt/hdt-menu-processor.c @@ -84,6 +84,22 @@ void compute_processor(struct s_my_menu *menu, struct s_hardware *hardware) add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; + if (hardware->dmi.processor.core_enabled != 0) { + snprintf(buffer, sizeof buffer, "CPU Enable: %d", hardware->dmi.processor.core_enabled); + snprintf(statbuffer, sizeof statbuffer, "Number of CPU Enabled : %d", + hardware->dmi.processor.core_enabled); + add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); + menu->items_count++; + } + + if (hardware->dmi.processor.thread_count != 0) { + snprintf(buffer, sizeof buffer, "CPU Thread: %d", hardware->dmi.processor.thread_count); + snprintf(statbuffer, sizeof statbuffer, "Number of CPU Threads : %d", + hardware->dmi.processor.thread_count); + add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); + menu->items_count++; + } + snprintf(buffer, sizeof buffer, "L1 Cache : %dK + %dK (I+D)", hardware->cpu.l1_instruction_cache_size, hardware->cpu.l1_data_cache_size); |